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.
This commit is contained in:
parent
e4c72719bf
commit
09207867e4
3 changed files with 56 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue