diff options
author | Nicola Ruggero <nicola@nxnt.org> | 2010-11-04 12:14:03 +0100 |
---|---|---|
committer | Nicola Ruggero <nicola@nxnt.org> | 2010-11-04 12:14:03 +0100 |
commit | d797b2cf497587355bbf25cd27d59edd1c3f2915 (patch) | |
tree | 8a706ce33714460c948c7d7d762e7b5ece23dec1 /libxrdp | |
parent | 87297c5014695da08815fca9c410505237162f24 (diff) | |
download | xrdp-proprietary-d797b2cf497587355bbf25cd27d59edd1c3f2915.tar.gz xrdp-proprietary-d797b2cf497587355bbf25cd27d59edd1c3f2915.zip |
Implemented client IP logging
Diffstat (limited to 'libxrdp')
-rw-r--r-- | libxrdp/libxrdpinc.h | 1 | ||||
-rw-r--r-- | libxrdp/xrdp_rdp.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/libxrdp/libxrdpinc.h b/libxrdp/libxrdpinc.h index a8ee6640..a32fdce5 100644 --- a/libxrdp/libxrdpinc.h +++ b/libxrdp/libxrdpinc.h @@ -63,6 +63,7 @@ struct xrdp_client_info int rdp5_performanceflags; int brush_cache_code; /* 0 = no cache 1 = 8x8 standard cache 2 = arbitrary dimensions */ + char client_ip[256]; }; struct xrdp_brush diff --git a/libxrdp/xrdp_rdp.c b/libxrdp/xrdp_rdp.c index 686e567c..fa833765 100644 --- a/libxrdp/xrdp_rdp.c +++ b/libxrdp/xrdp_rdp.c @@ -145,6 +145,7 @@ xrdp_rdp_create(struct xrdp_session* session, struct trans* trans) self->client_info.cache2_size = 1024; self->client_info.cache3_entries = 262; self->client_info.cache3_size = 4096; + g_write_ip_address(trans->sck, self->client_info.client_ip); /* load client ip info */ DEBUG(("out xrdp_rdp_create")); return self; } |