feat(resolvers/HTTPS): add HTTP proxy support #119
No reviewers
Labels
No labels
Priority: High
Priority: Low
Priority: Medium
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: sam/awl#119
Loading…
Reference in a new issue
No description provided.
Delete branch "http-proxy-support"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Turns out this was really easy and probably a nice-to-have
@ -26,6 +27,17 @@ func (resolver *HTTPSResolver) LookUp(msg *dns.Msg) (util.Response, error) {
httpR := &http.Client{
This is small and meant to be more of a talking point than a hard and fast thing that needs to be done.
I was thinking since HTTPSResolver is declared here do we need to declare a new struct we can keep everything inside of the HTTPSResolver object like so
and on line 59 we can keep it all under the resolver as
res, err := resolver.client.Do(req)
Besides that lgtm, just curious what you think about this.