aboutsummaryrefslogtreecommitdiff
path: root/middleware/proxy
diff options
context:
space:
mode:
Diffstat (limited to 'middleware/proxy')
-rw-r--r--middleware/proxy/lookup.go4
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)