Don't pass the port when calling getaddrinfo from socket.connect.
Also only attempt to resolve the address when we are AF_INET or AF_INET6; previously all other tuple address families would have been passed to getaddrinfo where they probably failed.
Showing
Please register or sign in to comment