From 2966db7b7800e97fe8635e94dafc4ebad834c7e0 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Fri, 30 Mar 2018 06:39:46 -0600 Subject: [PATCH] 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 --- caddyhttp/httpserver/tplcontext_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caddyhttp/httpserver/tplcontext_test.go b/caddyhttp/httpserver/tplcontext_test.go index dbc91e375..04e5ef7e0 100644 --- a/caddyhttp/httpserver/tplcontext_test.go +++ b/caddyhttp/httpserver/tplcontext_test.go @@ -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 {