aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorViktor Dukhovni <openssl-users@dukhovni.org>2016-02-03 18:32:25 -0500
committerViktor Dukhovni <openssl-users@dukhovni.org>2016-02-03 21:18:24 -0500
commit4c35c936618ef31667784f56c7a64552f2ea9fb8 (patch)
treeff6dac6a880221bee940fe41072c7d7016500dfb /util
parentef2499298b26fa84594c8e85fd645bc75179cfdd (diff)
downloadopenssl-4c35c936618ef31667784f56c7a64552f2ea9fb8.tar.gz
Handle localhost being either 127.0.0.1 or ::1
When connecting to "localhost" the Proxy's choice of client address family may not match the server's choice address family. Without MultiHomed => 1, the proxy may try the wrong address family first, and give up without trying the other. Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'util')
-rw-r--r--util/TLSProxy/Proxy.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/TLSProxy/Proxy.pm b/util/TLSProxy/Proxy.pm
index dab3d34357..283c76564f 100644
--- a/util/TLSProxy/Proxy.pm
+++ b/util/TLSProxy/Proxy.pm
@@ -261,6 +261,7 @@ sub clientstart
$server_sock = $IP_factory->(
PeerAddr => $servaddr,
PeerPort => $self->server_port,
+ MultiHomed => 1,
Proto => 'tcp'
);