summaryrefslogtreecommitdiffstats
path: root/source/web/cgi.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-03-17 12:37:06 +0000
committerAndrew Tridgell <tridge@samba.org>1998-03-17 12:37:06 +0000
commit78abb9fec3aac235ad26d0192351dc81ade6c584 (patch)
treeef9d6a19429cf1148b5d705a1700af863bdf158f /source/web/cgi.c
parenta776058900a727591bd7b69debdaa25c0e31d693 (diff)
downloadsamba-78abb9fec3aac235ad26d0192351dc81ade6c584.tar.gz
samba-78abb9fec3aac235ad26d0192351dc81ade6c584.tar.xz
samba-78abb9fec3aac235ad26d0192351dc81ade6c584.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 :-)
Diffstat (limited to 'source/web/cgi.c')
-rw-r--r--source/web/cgi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/web/cgi.c b/source/web/cgi.c
index 9931ca14688..c5b2ac55f15 100644
--- a/source/web/cgi.c
+++ b/source/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