diff options
author | 2016-11-29 09:54:57 +0000 | |
---|---|---|
committer | 2016-11-29 09:54:57 +0000 | |
commit | 4cfd19c7c97490dac47cd748166ec3f976e315aa (patch) | |
tree | 333b9851d6c5c80a374bf1084d2e012402710a87 /middleware/httpproxy/tls.go | |
parent | a1b9f96d876483b4356dddd83c24896d867e843c (diff) | |
download | coredns-4cfd19c7c97490dac47cd748166ec3f976e315aa.tar.gz coredns-4cfd19c7c97490dac47cd748166ec3f976e315aa.tar.zst coredns-4cfd19c7c97490dac47cd748166ec3f976e315aa.zip |
middleware/httpproxy: add debug queries (#446)
* middleware/httproxy: implement debug queries
Not too useful at the moment, but o-o.debug queries are supported
and return the Comment from dns.google.com.
Note that this is not always set.
* improve documentation
* Testing cleanups
Diffstat (limited to 'middleware/httpproxy/tls.go')
-rw-r--r-- | middleware/httpproxy/tls.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/middleware/httpproxy/tls.go b/middleware/httpproxy/tls.go index 9651ac1c6..2c05a0331 100644 --- a/middleware/httpproxy/tls.go +++ b/middleware/httpproxy/tls.go @@ -5,13 +5,14 @@ import ( "net/http" "time" + "github.com/miekg/coredns/request" "github.com/miekg/dns" ) // Exchanger is an interface that specifies a type implementing a DNS resolver that // uses a HTTPS server. type Exchanger interface { - Exchange(*dns.Msg) (*dns.Msg, error) + Exchange(request.Request) (*dns.Msg, error) SetUpstream(*simpleUpstream) error OnStartup() error |