From 37ebab492d14d38403ba866cc9ab25a2204f92fd Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 24 Dec 2015 00:20:39 +0000 Subject: Use 127.0.0.1 instead of localhost in test/httpserver, to force use of IPv4. Perl on Windows tends to use IPv6 for localhost if possible, but the server binds to IPv4, breaking the test. --- test/httpserver/testfiles/testrequests.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/httpserver/testfiles/testrequests.pl b/test/httpserver/testfiles/testrequests.pl index 85380ee0..4dd3549f 100755 --- a/test/httpserver/testfiles/testrequests.pl +++ b/test/httpserver/testfiles/testrequests.pl @@ -2,7 +2,9 @@ use strict; use LWP::UserAgent; -my $url_base = '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. +my $url_base = 'http://127.0.0.1:1080'; my $ua = LWP::UserAgent->new(env_proxy => 0, keep_alive => 1, timeout => 30); -- cgit v1.2.3