git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f996885
)
when CGI_LOGGING is on log the host name and IP
author
Andrew Tridgell
<tridge@samba.org>
Tue, 17 Mar 1998 12:37:06 +0000
(12:37 +0000)
committer
Andrew Tridgell
<tridge@samba.org>
Tue, 17 Mar 1998 12:37:06 +0000
(12:37 +0000)
this is just so I can snoop on who is looking at the demo :-)
(This used to be commit
78abb9fec3aac235ad26d0192351dc81ade6c584
)
source3/web/cgi.c
patch
|
blob
|
history
diff --git
a/source3/web/cgi.c
b/source3/web/cgi.c
index 9931ca1468897dd69ae04fbaa0c665893d427e5d..c5b2ac55f1532fdb1139cd6b76aa69cea0b12d05 100644
(file)
--- 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