summaryrefslogtreecommitdiffstats
path: root/xup
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2013-10-02 16:27:12 -0700
committerJay Sorg <jay.sorg@gmail.com>2013-10-02 16:27:12 -0700
commit25369460a1b2f204d03a6bc4821251d7ef2d7adf (patch)
treed0c1ad0dac826abfa34c15e4b9b06dc76f2352c6 /xup
parent7176f1464710fd809af92ae3c2fcf9412eda9ace (diff)
downloadxrdp-proprietary-25369460a1b2f204d03a6bc4821251d7ef2d7adf.tar.gz
xrdp-proprietary-25369460a1b2f204d03a6bc4821251d7ef2d7adf.zip
log client ip with pid, etc
Diffstat (limited to 'xup')
-rw-r--r--xup/xup.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/xup/xup.c b/xup/xup.c
index 12cfa4f1..7ff5e5e8 100644
--- a/xup/xup.c
+++ b/xup/xup.c
@@ -149,8 +149,12 @@ lib_mod_log_peer(struct mod *mod)
my_pid = g_getpid();
if (g_sck_get_peer_cred(mod->sck, &pid, &uid, &gid) == 0)
{
- log_message(LOG_LEVEL_INFO, "lib_mod_log_peer: xrdp pid %d connected "
- "to X11rdp pid %d", my_pid, pid);
+ log_message(LOG_LEVEL_INFO, "lib_mod_log_peer: xrdp_pid=%d connected "
+ "to X11rdp_pid=%d X11rdp_uid=%d X11rdp_gid=%d "
+ "client_ip=%s client_port=%s",
+ my_pid, pid, uid, gid,
+ mod->client_info.client_addr,
+ mod->client_info.client_port);
}
else
{