diff options
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/getaddrinfo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/getaddrinfo.c b/src/network/getaddrinfo.c index 8126236b..c0f135f3 100644 --- a/src/network/getaddrinfo.c +++ b/src/network/getaddrinfo.c @@ -117,6 +117,7 @@ int getaddrinfo(const char *host, const char *serv, const struct addrinfo *hint, buf->ai.ai_addr = (void *)&buf->sa; buf->ai.ai_addrlen = family==AF_INET6 ? sizeof sa.sin6 : sizeof sa.sin; buf->ai.ai_family = family; + buf->ai.ai_canonname = (char *)host; buf->sa = sa; buf->sa.sin.sin_port = port; *res = &buf->ai; |