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/secondary_test.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/secondary_test.go')
-rw-r--r-- | middleware/file/secondary_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/middleware/file/secondary_test.go b/middleware/file/secondary_test.go index 35866335a..111770320 100644 --- a/middleware/file/secondary_test.go +++ b/middleware/file/secondary_test.go @@ -138,11 +138,11 @@ func TestIsNotify(t *testing.T) { // need to set opcode state.Req.Opcode = dns.OpcodeNotify - z.TransferFrom = []string{"10.240.0.1:40212"} // IP from from testing/responseWriter + z.TransferFrom = []string{"10.240.0.1:53"} // IP from from testing/responseWriter if !z.isNotify(state) { t.Fatal("should have been valid notify") } - z.TransferFrom = []string{"10.240.0.2:40212"} + z.TransferFrom = []string{"10.240.0.2:53"} if z.isNotify(state) { t.Fatal("should have been invalid notify") } |