Skip to content

Commit

Permalink
Merge pull request pistacheio#398 from hydratim/master
Browse files Browse the repository at this point in the history
Simple patch to bugs listed in pistacheio#392
  • Loading branch information
dennisjenkins75 authored Dec 31, 2018
2 parents c05ae94 + 89bca7a commit 5091af1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5091af1

Please sign in to comment.