Unverified Commit 5091af16 authored by Dennis Jenkins's avatar Dennis Jenkins Committed by GitHub

Merge pull request #398 from hydratim/master

Simple patch to bugs listed in #392
parents c05ae942 89bca7a6
......@@ -338,7 +338,7 @@ Connection::connect(const Address& addr)
struct addrinfo hints;
struct addrinfo *addrs;
memset(&hints, 0, sizeof(struct addrinfo));
hints.ai_family = AF_UNSPEC; /* Allow IPv4 or IPv6 */
hints.ai_family = addr.family();
hints.ai_socktype = SOCK_STREAM; /* Stream socket */
hints.ai_flags = 0;
hints.ai_protocol = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment