diff options
Diffstat (limited to 'middleware/whoami/whoami.go')
-rw-r--r-- | middleware/whoami/whoami.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/middleware/whoami/whoami.go b/middleware/whoami/whoami.go index c86d462c8..01af7107f 100644 --- a/middleware/whoami/whoami.go +++ b/middleware/whoami/whoami.go @@ -6,7 +6,6 @@ import ( "net" "strconv" - "github.com/miekg/coredns/middleware" "github.com/miekg/coredns/request" "github.com/miekg/dns" @@ -15,9 +14,7 @@ import ( // Whoami is a middleware that returns your IP address, port and the protocol used for connecting // to CoreDNS. -type Whoami struct { - Next middleware.Handler -} +type Whoami struct{} // ServeDNS implements the middleware.Handler interface. func (wh Whoami) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) { |