diff options
author | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2016-01-29 14:03:40 +0100 |
---|---|---|
committer | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2016-01-29 14:03:40 +0100 |
commit | 161772892f5525f5565a2e00fe1181adbc5c3976 (patch) | |
tree | 3d0be64bb540782107c0337b89501dfe9c954a89 | |
parent | 16766d83fffd134a6f563bb61c600ac1f2d4aa33 (diff) | |
parent | 118eb0a68ce3250aa4528e6086b2bd0567e7638c (diff) | |
download | irssi-161772892f5525f5565a2e00fe1181adbc5c3976.zip |
Merge pull request #409 from LemonBoy/reverse-lookup-flags
Reverse lookup flags
-rw-r--r-- | src/core/network.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/network.c b/src/core/network.c index 28189661..8abc1ba1 100644 --- a/src/core/network.c +++ b/src/core/network.c @@ -447,8 +447,10 @@ int net_gethostbyaddr(IPADDR *ip, char **name) sin_set_ip(&so, ip); /* save error to host_error for later use */ - host_error = getnameinfo((struct sockaddr *) &so, sizeof(so), - hostname, sizeof(hostname), NULL, 0, 0); + host_error = getnameinfo((struct sockaddr *)&so, sizeof(so), + hostname, sizeof(hostname), + NULL, 0, + NI_NAMEREQD); if (host_error != 0) return host_error; |