mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 10:13:14 -04:00 
			
		
		
		
	Test and fix notify
More tests and add RemoteAddr to State, prolly LocalAddr will be useful as well. Fixed and tested IsNotify method.
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 := middleware.Addr(state.IP()).Normalize() | ||||
| 	remote := state.RemoteAddr() | ||||
| 	for _, from := range z.TransferFrom { | ||||
| 		if from == remote { | ||||
| 			return true | ||||
|   | ||||
		Reference in New Issue
	
	Block a user