summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-10-02 17:42:27 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-10-02 23:25:39 -0400
commit41b5926f5c69eb4be7450413377422f98c5db6f2 (patch)
tree31d669a591bcbb6930e093aa8dbddf6f96a698c3
parenta523753c1f680d2e8e0b60e39fec7d2ceeeb704f (diff)
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".
-rwxr-xr-xtest/lib/runserver2
1 files changed, 1 insertions, 1 deletions
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
);