mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 08:44:17 -04:00
Test and fix notify
More tests and add RemoteAddr to State, prolly LocalAddr will be useful as well. Fixed and tested IsNotify method.
This commit is contained in:
@@ -50,6 +50,11 @@ func (s *State) Port() (string, error) {
|
||||
return port, nil
|
||||
}
|
||||
|
||||
// RemoteAddr returns the net.Addr of the client that sent the current request.
|
||||
func (s *State) RemoteAddr() string {
|
||||
return s.W.RemoteAddr().String()
|
||||
}
|
||||
|
||||
// Proto gets the protocol used as the transport. This
|
||||
// will be udp or tcp.
|
||||
func (s *State) Proto() string {
|
||||
|
||||
Reference in New Issue
Block a user