mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 02:03:20 -04:00 
			
		
		
		
	Validate zone during normalization (#3165)
This commit is contained in:
		
				
					committed by
					
						 Yong Tang
						Yong Tang
					
				
			
			
				
	
			
			
			
						parent
						
							27f44f60ee
						
					
				
				
					commit
					f888c5f7f6
				
			| @@ -28,6 +28,7 @@ func TestNormalizeZone(t *testing.T) { | ||||
| 		{"https://.:8443", "https://.:8443", false}, | ||||
| 		{"https://..", "://:", true}, | ||||
| 		{"https://.:", "://:", true}, | ||||
| 		{"dns://.:1053{.:53", "://:", true}, | ||||
| 	} { | ||||
| 		addr, err := normalizeZone(test.input) | ||||
| 		actual := addr.String() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user