diff options
author | LemonBoy <thatlemon@gmail.com> | 2015-09-21 13:54:13 +0200 |
---|---|---|
committer | LemonBoy <thatlemon@gmail.com> | 2015-09-21 14:19:35 +0200 |
commit | ffaa890e99e2176ff3d2dec0ab5a8136e1e946ff (patch) | |
tree | 8c3765d9736a0f86037b42c18fd3c1553b4a2434 /src/core/network.h | |
parent | 0912a1105058829559529e2ae7d62daccb8337f6 (diff) | |
download | irssi-ffaa890e99e2176ff3d2dec0ab5a8136e1e946ff.zip |
Initial work to make irssi respect the resolved ip order
Ip's aren't selected using random() anymore, also select the ip version
by using getaddrinfo and some proper hints.
Diffstat (limited to 'src/core/network.h')
-rw-r--r-- | src/core/network.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/network.h b/src/core/network.h index fa7e9675..ea8b3055 100644 --- a/src/core/network.h +++ b/src/core/network.h @@ -71,7 +71,7 @@ int net_transmit(GIOChannel *handle, const char *data, int len); /* Get IP addresses for host, both IPv4 and IPv6 if possible. If ip->family is 0, the address wasn't found. Returns 0 = ok, others = error code for net_gethosterror() */ -int net_gethostbyname(const char *addr, IPADDR *ip4, IPADDR *ip6); +int net_gethostbyname(const char *addr, IPADDR *ip); /* Get name for host, *name should be g_free()'d unless it's NULL. Return values are the same as with net_gethostbyname() */ int net_gethostbyaddr(IPADDR *ip, char **name); |