diff options
author | 2016-04-07 08:03:57 +0100 | |
---|---|---|
committer | 2016-04-07 08:03:57 +0100 | |
commit | 09207867e40a85bafb3a93d659d7c428293bb6a7 (patch) | |
tree | 25cddf65ec9a374d1d29a96fc3276d69e17fe73e /middleware/file/notify.go | |
parent | e4c72719bfb10d5bc5d79a172d8a0b5e852acc2a (diff) | |
download | coredns-09207867e40a85bafb3a93d659d7c428293bb6a7.tar.gz coredns-09207867e40a85bafb3a93d659d7c428293bb6a7.tar.zst coredns-09207867e40a85bafb3a93d659d7c428293bb6a7.zip |
Add missing test file and fix notify
We should not check the port of the request, we *should* actually
normalize it to port 53 - as that will probably be the address of
the server. Still need to double check if this will work if the
axfr should actually be done from a different port. That will come
later, this is good enough for now.
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 1a4e43d31..b369f6ad1 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 := state.RemoteAddr() + remote := middleware.Addr(state.IP()).Normalize() for _, from := range z.TransferFrom { if from == remote { return true |