Skip to content
Snippets Groups Projects
Commit 41b6e894 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Log client IP address in "Logging in" log message

parent 4c08fba2
No related branches found
No related tags found
No related merge requests found
Pipeline #4995 failed
......@@ -467,8 +467,8 @@ js_login(JSContext *cx, uintN argc, jsval *arglist)
client->logintime=time(NULL);
if(client->service->log_level >= LOG_INFO)
lprintf(LOG_INFO,"%04d %s Logging in %s"
,client->socket,client->service->protocol,client->user.alias);
lprintf(LOG_INFO,"%04d %s [%s] Logging in %s"
,client->socket,client->service->protocol,client->addr,client->user.alias);
val = BOOLEAN_TO_JSVAL(JS_TRUE);
if(!JS_SetProperty(cx, obj, "logged_in", &val))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment