diff options
author | 2016-10-30 15:54:16 +0000 | |
---|---|---|
committer | 2016-10-30 15:54:16 +0000 | |
commit | 27d893cf33b81e1a419ec58d0512bd2ecb01b8a2 (patch) | |
tree | b4d1b64a4e14b714dabbaf41a2d92b2054ceb490 /middleware/proxy | |
parent | 81d5baee284063d9d2501fab15138ade5da5180f (diff) | |
download | coredns-27d893cf33b81e1a419ec58d0512bd2ecb01b8a2.tar.gz coredns-27d893cf33b81e1a419ec58d0512bd2ecb01b8a2.tar.zst coredns-27d893cf33b81e1a419ec58d0512bd2ecb01b8a2.zip |
ServiceBackend interface (#369)
* Add ServiceBackend interface
This adds a ServiceBackend interface that is shared between etcd/etcd3
(later) and kubernetes, leading to a massive reduction in code. When
returning the specific records from their backend.
Fixes #273
Diffstat (limited to 'middleware/proxy')
-rw-r--r-- | middleware/proxy/lookup.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/middleware/proxy/lookup.go b/middleware/proxy/lookup.go index 549dfa0c7..340b4e31b 100644 --- a/middleware/proxy/lookup.go +++ b/middleware/proxy/lookup.go @@ -54,9 +54,9 @@ func New(hosts []string) Proxy { // Lookup will use name and type to forge a new message and will send that upstream. It will // set any EDNS0 options correctly so that downstream will be able to process the reply. -func (p Proxy) Lookup(state request.Request, name string, tpe uint16) (*dns.Msg, error) { +func (p Proxy) Lookup(state request.Request, name string, typ uint16) (*dns.Msg, error) { req := new(dns.Msg) - req.SetQuestion(name, tpe) + req.SetQuestion(name, typ) state.SizeAndDo(req) return p.lookup(state, req) |