summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2016-09-16 20:53:28 +0100
committerChris Wilson <chris+github@qwirx.com>2016-09-16 20:54:54 +0100
commitba3928734bd20567819b5fc56c93f5d95965bd7a (patch)
treedde7ea9db56f7d5809c29787cb8ccf6967ef5a34 /test
parent8b73c13dd60080c701314ac06b6180c88e7a4422 (diff)
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.
Diffstat (limited to 'test')
-rw-r--r--test/httpserver/testfiles/httpserver.conf5
1 files changed, 3 insertions, 2 deletions
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
{