diff options
Diffstat (limited to 'middleware/whoami/whoami.go')
-rw-r--r-- | middleware/whoami/whoami.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/middleware/whoami/whoami.go b/middleware/whoami/whoami.go index 354bf6b4f..4de9a9cdb 100644 --- a/middleware/whoami/whoami.go +++ b/middleware/whoami/whoami.go @@ -11,10 +11,13 @@ import ( "golang.org/x/net/context" ) +// Whoami is a middleware that returns your IP address, port and the protocol used for connecting +// to CoreDNS. type Whoami struct { Next middleware.Handler } +// ServeDNS implements the middleware.Handler interface. func (wh Whoami) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) { state := request.Request{W: w, Req: r} |