* Call getnameinfo() without the flag that suppresses name lookups
authorArt Cancro <ajc@citadel.org>
Sun, 14 Mar 2010 02:56:55 +0000 (02:56 +0000)
committerArt Cancro <ajc@citadel.org>
Sun, 14 Mar 2010 02:56:55 +0000 (02:56 +0000)
webcit/locate_host.c

index b18f1031bc9ddc4b63b3f190d11dcfdd177616ed..ae99fc3dc85562cb2f6744ff77230bf5916da5e9 100644 (file)
@@ -36,7 +36,7 @@ void locate_host(StrBuf *tbuf, int client_socket)
        getnameinfo((struct sockaddr *)&clientaddr, addrlen,
                clienthost, sizeof(clienthost),
                clientservice, sizeof(clientservice),
-               NI_NUMERICHOST
+               0
        );
 
         StrBufAppendBufPlain(tbuf, clienthost, -1, 0);