diff options
Diffstat (limited to 'test/httpserver/testfiles')
-rwxr-xr-x | test/httpserver/testfiles/testrequests.pl | 4 |
1 files changed, 3 insertions, 1 deletions
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); |