socks5_connect(): Properly deal with socks replies that contain IPv6 addresses