diff options
author | Andy Polyakov <appro@openssl.org> | 2018-04-11 23:16:52 +0200 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2018-04-14 19:59:02 +0200 |
commit | de5b3a8645a3b2dd22fa8866e64488eb2b69777d (patch) | |
tree | 647572831adef66e775d1dc4b2d03480c99b3b5c /test | |
parent | d47eb76cd5fef2495c23705733d7034370063556 (diff) | |
download | openssl-de5b3a8645a3b2dd22fa8866e64488eb2b69777d.tar.gz |
TLSProxy/Proxy.pm: bind s_server to loopback interface.
Bind even test/ssltest_old.c to loopback interface. This allows to avoid
unnecessary alerts from Windows and Mac OS X firewalls.
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5933)
Diffstat (limited to 'test')
-rw-r--r-- | test/ssltest_old.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ssltest_old.c b/test/ssltest_old.c index 946948534a..34705c3472 100644 --- a/test/ssltest_old.c +++ b/test/ssltest_old.c @@ -1836,7 +1836,8 @@ int doit_localhost(SSL *s_ssl, SSL *c_ssl, int family, long count, int err_in_client = 0; int err_in_server = 0; - acpt = BIO_new_accept("0"); + acpt = BIO_new_accept(family == BIO_FAMILY_IPV4 ? "127.0.0.1:0" + : "[::1]:0"); if (acpt == NULL) goto err; BIO_set_accept_ip_family(acpt, family); |