TLSProxy::Proxy: If we don't support IPv6, force IPv4
authorRichard Levitte <levitte@openssl.org>
Tue, 16 Jan 2018 18:50:10 +0000 (19:50 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 17 Jan 2018 08:28:30 +0000 (09:28 +0100)
commitfa9dc509cccbe30b48ad7f4f2e23610a182a23c3
treee4fa9f811c0c0b414ffe7174ea332fa6b249ca2c
parentbaa5d0ed2c907ceb3890f055e73f01ef2b2353ee
TLSProxy::Proxy:  If we don't support IPv6, force IPv4

We use the first we can of the following IO::Socket modules to create
sockets:

- IO::Socket::INET6
- IO::Socket::IP
- IO::Socket::INET

The last of them doesn't support IPv6, so if that's the one available,
we must force the s_client and s_server processes to use IPv4.

Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/5092)

(cherry picked from commit c44bab084ed139b5e5c3f6b318bf1bf65e04cfa5)
util/perl/TLSProxy/Proxy.pm