mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 02:33:14 -04:00
add test case of remote ip (#3964)
Signed-off-by: zounengren <zounengren@cmss.chinamobile.com>
This commit is contained in:
@@ -12,6 +12,7 @@ import (
|
||||
"github.com/miekg/dns"
|
||||
)
|
||||
|
||||
const name = "whoami"
|
||||
// Whoami is a plugin that returns your IP address, port and the protocol used for connecting
|
||||
// to CoreDNS.
|
||||
type Whoami struct{}
|
||||
@@ -55,4 +56,4 @@ func (wh Whoami) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg)
|
||||
}
|
||||
|
||||
// Name implements the Handler interface.
|
||||
func (wh Whoami) Name() string { return "whoami" }
|
||||
func (wh Whoami) Name() string { return name }
|
||||
|
||||
Reference in New Issue
Block a user