diff options
author | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2016-02-03 11:45:11 +0100 |
---|---|---|
committer | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2016-02-03 11:45:11 +0100 |
commit | af229a8bb76d3dc964be2bbab3db75d6a9225532 (patch) | |
tree | 958f8aecdf1b24e52d309cde6fd84e6b1b574239 /src/core | |
parent | 161772892f5525f5565a2e00fe1181adbc5c3976 (diff) | |
parent | 0cc8276e896441a186a8080f127e35d60112d758 (diff) | |
download | irssi-af229a8bb76d3dc964be2bbab3db75d6a9225532.zip |
Merge pull request #410 from LemonBoy/getaddrinfo-v6-flag
Getaddrinfo v6 flag
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/network.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/network.c b/src/core/network.c index 8abc1ba1..76659f3e 100644 --- a/src/core/network.c +++ b/src/core/network.c @@ -390,6 +390,7 @@ int net_gethostbyname(const char *addr, IPADDR *ip4, IPADDR *ip6) memset(&hints, 0, sizeof(struct addrinfo)); hints.ai_socktype = SOCK_STREAM; + hints.ai_flags = AI_ADDRCONFIG; /* save error to host_error for later use */ ret = getaddrinfo(addr, NULL, &hints, &ailist); |