mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-11-03 19:17:29 -05:00 
			
		
		
		
	httpserver: Fix test that relies on external DNS lookup
Apparently Cloudflare just caused 1.1.1.1 to resolve, so we have to change our test IP, hopefully this is better
This commit is contained in:
		
							parent
							
								
									38e65e28d4
								
							
						
					
					
						commit
						2966db7b78
					
				@ -277,7 +277,7 @@ func TestHostname(t *testing.T) {
 | 
			
		||||
		// // Test 3 - ipv6 without port and brackets
 | 
			
		||||
		// {"2001:4860:4860::8888", "google-public-dns-a.google.com."},
 | 
			
		||||
		// Test 4 - no hostname available
 | 
			
		||||
		{"1.1.1.1", "1.1.1.1"},
 | 
			
		||||
		{"0.0.0.0", "0.0.0.0"},
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	for i, test := range tests {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user