From 25369460a1b2f204d03a6bc4821251d7ef2d7adf Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Wed, 2 Oct 2013 16:27:12 -0700 Subject: log client ip with pid, etc --- xup/xup.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'xup') 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 { -- cgit v1.2.1