benningm/LWP-Protocol-connect — pull request #1 by yak1ex (2013-07-30 15:31:05+00:00)
Title: Add hack for IO::Socket::INET6.

If IO::Socket::INET6 is installed but IO::Socket::IP is not installed, IO::Socket::SSL uses IO::Socket::INET6. In this case, some methods fail for IPv4 hosts because socket domain is considered as AF_INET6, like "Bad arg length for Socket6::unpack_sockaddr_in6, length is 16, should be 28". If IO::Socket::IP is installed, there is no problem.
In order to fix this problem, it is necessary to set socket domain as AF_INET if base socket is for AF_INET. $args{Domain} is not used for setting up socket domain by new_from_fd() and I can not find public interface to set domain, so force override IO::Socket internal field.