Use only family in getaddrinfo hints when socket.connect