Enable logging of realip.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2979 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Molgrum 2008-05-26 20:22:47 +00:00
parent af47e57535
commit 250d6ffeb8

View file

@ -273,7 +273,7 @@ void SV_LogPlayer(client_t *cl, char *msg)
snprintf(line, sizeof(line),
"%s\\%s\\%i\\%s\\%s\\%i%s\n",
msg, cl->name, cl->userid,
NET_BaseAdrToString(cl->netchan.remote_address), "??",
NET_BaseAdrToString(cl->netchan.remote_address), (cl->realip_status > 0 ? NET_BaseAdrToString(cl->realip) : "??"),
cl->netchan.remote_address.port, cl->userinfo);
Log_String(LOG_PLAYER, line);