From a0cf50fd3075355c16fae461d88d72e0656cbb62 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Sun, 12 Sep 2010 23:02:39 -0400 Subject: [PATCH] Mention the client host name or address in the logs --- webcit/locate_host.c | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.39.2