1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

when CGI_LOGGING is on log the host name and IP

this is just so I can snoop on who is looking at the demo :-)
(This used to be commit 78abb9fec3aac235ad26d0192351dc81ade6c584)
This commit is contained in:
Andrew Tridgell 1998-03-17 12:37:06 +00:00
parent f996885676
commit d56fc8d169

View File

@ -561,7 +561,9 @@ void cgi_setup(char *rootdir, int auth_required)
#if CGI_LOGGING
f = fopen("/tmp/cgi.log", "a");
if (f) fprintf(f,"\n[Date: %s]\n", http_timestring(time(NULL)));
if (f) fprintf(f,"\n[Date: %s %s (%s)]\n",
http_timestring(time(NULL)),
client_name(1), client_addr(1));
#endif
/* we are a mini-web server. We need to read the request from stdin