diff options
Diffstat (limited to 'middleware/etcd/handler.go')
-rw-r--r-- | middleware/etcd/handler.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/middleware/etcd/handler.go b/middleware/etcd/handler.go index c4fa3c46e..b462d7c5b 100644 --- a/middleware/etcd/handler.go +++ b/middleware/etcd/handler.go @@ -5,6 +5,7 @@ import ( "github.com/miekg/coredns/middleware" "github.com/miekg/coredns/middleware/etcd/msg" + "github.com/miekg/coredns/middleware/pkg/debug" "github.com/miekg/coredns/middleware/pkg/dnsutil" "github.com/miekg/coredns/request" @@ -21,10 +22,10 @@ func (e *Etcd) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) ( } name := state.Name() if e.Debugging { - if debug := isDebug(name); debug != "" { + if bug := debug.IsDebug(name); bug != "" { opt.Debug = r.Question[0].Name state.Clear() - state.Req.Question[0].Name = debug + state.Req.Question[0].Name = bug } } |