From ba3928734bd20567819b5fc56c93f5d95965bd7a Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 16 Sep 2016 20:53:28 +0100 Subject: Use IPv4 localhost address to access test httpserver. Fixes test failures on IPv6 enabled hosts where localhost can resolve to an IPv6 address, but the server is only bound to the IPv4 localhost address. --- test/httpserver/testfiles/httpserver.conf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/httpserver/testfiles') diff --git a/test/httpserver/testfiles/httpserver.conf b/test/httpserver/testfiles/httpserver.conf index 1a1c4644..d8c72a3f 100644 --- a/test/httpserver/testfiles/httpserver.conf +++ b/test/httpserver/testfiles/httpserver.conf @@ -1,5 +1,6 @@ - -AddressPrefix = http://localhost:1080 +# Use 127.0.0.1 instead of localhost to force use of IPv4, as that is what the server +# binds to. Windows tends to use IPv6 instead if possible, breaking the test. +AddressPrefix = http://127.0.0.1:1080 Server { -- cgit v1.2.3