fix connect to ipv4 server if listen on ipv6