summaryrefslogtreecommitdiffstats
path: root/source/web/cgi.c
diff options
context:
space:
mode:
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