mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 02:03:20 -04:00 
			
		
		
		
	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:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user