From: Wilfried Goesgens Date: Sun, 21 Nov 2010 18:55:40 +0000 (+0100) Subject: Log remote-IP on login attempts X-Git-Tag: v8.01~569 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=0857036424dd0a4eeff50ae1cb740c0cb2155ed8 Log remote-IP on login attempts By Stuart Cianos --- diff --git a/citadel/citserver.c b/citadel/citserver.c index 859c25fa9..1df958512 100644 --- a/citadel/citserver.c +++ b/citadel/citserver.c @@ -1032,10 +1032,10 @@ void do_command_loop(void) { /* Log the server command, but don't show passwords... */ if ( (strncasecmp(cmdbuf, "PASS", 4)) && (strncasecmp(cmdbuf, "SETP", 4)) ) { - CtdlLogPrintf(CTDL_INFO, "%s\n", cmdbuf); + CtdlLogPrintf(CTDL_INFO, "CtdlCommand [%s] [%s] %s\n", CTDLUSERIP, CC->curr_user, cmdbuf); } else { - CtdlLogPrintf(CTDL_INFO, "