From 30fd224504d7e6fcfa7da027d62d2105ecb6f0c5 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Sat, 17 Sep 2016 17:09:05 +0100 Subject: middleware/whoami: add (#264) Add a new middleware that tells you who you are; IP, port and transport is echoed back. Also some various cleanup and documentation improvements while at it: * ResponseWriter: improve the documentation of these helper functions. * And add an NextHandler for use in tests. Make chaos_test.go and * whoam_test.go use it. --- core/coredns.go | 1 + 1 file changed, 1 insertion(+) (limited to 'core/coredns.go') diff --git a/core/coredns.go b/core/coredns.go index 186c59612..369230492 100644 --- a/core/coredns.go +++ b/core/coredns.go @@ -21,6 +21,7 @@ import ( _ "github.com/miekg/coredns/middleware/proxy" _ "github.com/miekg/coredns/middleware/rewrite" _ "github.com/miekg/coredns/middleware/secondary" + _ "github.com/miekg/coredns/middleware/whoami" ) // Quiet mode will not show any informative output on initialization. -- cgit v1.2.3