summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorailin-nemui <ailin-nemui@users.noreply.github.com>2016-02-03 11:45:11 +0100
committerailin-nemui <ailin-nemui@users.noreply.github.com>2016-02-03 11:45:11 +0100
commitaf229a8bb76d3dc964be2bbab3db75d6a9225532 (patch)
tree958f8aecdf1b24e52d309cde6fd84e6b1b574239 /src/core
parent161772892f5525f5565a2e00fe1181adbc5c3976 (diff)
parent0cc8276e896441a186a8080f127e35d60112d758 (diff)
downloadirssi-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.c1
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);