diff options
author | 2016-04-07 07:42:58 +0100 | |
---|---|---|
committer | 2016-04-07 07:42:58 +0100 | |
commit | e4c72719bfb10d5bc5d79a172d8a0b5e852acc2a (patch) | |
tree | 07eeee7624a6edd2a36670c610d9fee3934f04ca /middleware/file/notify.go | |
parent | 225cdd1ca387b409c07269db44100643fccb620c (diff) | |
download | coredns-e4c72719bfb10d5bc5d79a172d8a0b5e852acc2a.tar.gz coredns-e4c72719bfb10d5bc5d79a172d8a0b5e852acc2a.tar.zst coredns-e4c72719bfb10d5bc5d79a172d8a0b5e852acc2a.zip |
Test and fix notify
More tests and add RemoteAddr to State, prolly LocalAddr will be
useful as well.
Fixed and tested IsNotify method.
Diffstat (limited to 'middleware/file/notify.go')
-rw-r--r-- | middleware/file/notify.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/middleware/file/notify.go b/middleware/file/notify.go index b369f6ad1..1a4e43d31 100644 --- a/middleware/file/notify.go +++ b/middleware/file/notify.go @@ -19,7 +19,7 @@ func (z *Zone) isNotify(state middleware.State) bool { if len(z.TransferFrom) == 0 { return false } - remote := middleware.Addr(state.IP()).Normalize() + remote := state.RemoteAddr() for _, from := range z.TransferFrom { if from == remote { return true |