diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2018-10-02 17:42:27 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2018-10-02 23:25:39 -0400 |
commit | 41b5926f5c69eb4be7450413377422f98c5db6f2 (patch) | |
tree | 31d669a591bcbb6930e093aa8dbddf6f96a698c3 /test | |
parent | a523753c1f680d2e8e0b60e39fec7d2ceeeb704f (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".
Diffstat (limited to 'test')
-rwxr-xr-x | test/lib/runserver | 2 |
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 ); |