From 41b5926f5c69eb4be7450413377422f98c5db6f2 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 2 Oct 2018 17:42:27 -0400 Subject: test: runserver: Explicitly listen on IPv4 The implementation is not dual-stack. It supports *either* IPv4 or IPv6. I'm not entirely sure how it chooses. Clients that support happy-eyeballs will do thing right thing, but clients that don't (*cough* openssh) won't. So explicitly choose the IPv4 localhost instead of using an ambiguous "localhost". --- test/lib/runserver | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lib/runserver b/test/lib/runserver index 7705e40..80450a5 100755 --- a/test/lib/runserver +++ b/test/lib/runserver @@ -6,7 +6,7 @@ use IO::Socket::INET; use Fcntl; my $socket = IO::Socket::INET->new( - LocalAddr => "localhost:0", + LocalAddr => "127.0.0.1:0", Listen => 1 ); -- cgit v1.2.2