diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-03-17 12:37:06 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-03-17 12:37:06 +0000 |
commit | d56fc8d169b0b29136b18c764ddb5d2fdfadbd76 (patch) | |
tree | 7f2987abd45aa6a2ba29f951fcd3c4d19cfbd949 /source3 | |
parent | f996885676f041437430bfd5843a3000611b0923 (diff) | |
download | samba-d56fc8d169b0b29136b18c764ddb5d2fdfadbd76.tar.gz samba-d56fc8d169b0b29136b18c764ddb5d2fdfadbd76.tar.bz2 samba-d56fc8d169b0b29136b18c764ddb5d2fdfadbd76.zip |
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)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/web/cgi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/web/cgi.c b/source3/web/cgi.c index 9931ca1468..c5b2ac55f1 100644 --- a/source3/web/cgi.c +++ b/source3/web/cgi.c @@ -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 |