Skip to content

Commit

Permalink
fix #227
Browse files Browse the repository at this point in the history
  • Loading branch information
madeye committed Jan 15, 2015
1 parent a8a5085 commit ba889d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/netutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ int get_sockaddr(char *host, char *port, struct sockaddr_storage *storage)
} else if (ip.version == 6) {
struct sockaddr_in6 *addr = (struct sockaddr_in6 *)storage;
addr->sin6_family = AF_INET6;
dns_pton(AF_INET, host, &(addr->sin6_addr));
dns_pton(AF_INET6, host, &(addr->sin6_addr));
if (port != NULL) {
addr->sin6_port = htons(atoi(port));
}
Expand Down

0 comments on commit ba889d2

Please sign in to comment.