mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 02:03:20 -04:00 
			
		
		
		
	Use dns.IsSubDomain (#112)
For the match function use the proper thing from go dns. Fix all callers and tests to use this. Fixes: #107
This commit is contained in:
		| @@ -76,6 +76,7 @@ func startsWithFunc(a, b string) bool { | ||||
| // endsWithFunc is condition for EndsWith operator. | ||||
| // It checks if b is a suffix of a. | ||||
| func endsWithFunc(a, b string) bool { | ||||
| 	// TODO(miek): IsSubDomain | ||||
| 	return strings.HasSuffix(a, b) | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user