Drop-in replacement for IO::Socket::INET supporting both IPv4 and IPv6