From: Art Cancro Date: Mon, 13 Sep 2010 03:02:39 +0000 (-0400) Subject: Mention the client host name or address in the logs X-Git-Tag: v8.01~720 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=a0cf50fd3075355c16fae461d88d72e0656cbb62;p=citadel.git Mention the client host name or address in the logs --- diff --git a/webcit/locate_host.c b/webcit/locate_host.c index 8f1a76955..b3346e4c7 100644 --- a/webcit/locate_host.c +++ b/webcit/locate_host.c @@ -19,6 +19,7 @@ */ #include "webcit.h" +#include "webserver.h" /* * IPv4/IPv6 locate_host() @@ -32,4 +33,5 @@ void locate_host(StrBuf *tbuf, int client_socket) getpeername(client_socket, (struct sockaddr *)&clientaddr, &addrlen); getnameinfo((struct sockaddr *)&clientaddr, addrlen, clienthost, sizeof(clienthost), NULL, 0, 0); StrBufAppendBufPlain(tbuf, clienthost, -1, 0); + lprintf(9, "Client is at %s\n", clienthost); }