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 /xrdp/xrdp_mm.c | |
parent | 87297c5014695da08815fca9c410505237162f24 (diff) | |
download | xrdp-proprietary-d797b2cf497587355bbf25cd27d59edd1c3f2915.tar.gz xrdp-proprietary-d797b2cf497587355bbf25cd27d59edd1c3f2915.zip |
Implemented client IP logging
Diffstat (limited to 'xrdp/xrdp_mm.c')
-rw-r--r-- | xrdp/xrdp_mm.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/xrdp/xrdp_mm.c b/xrdp/xrdp_mm.c index 67d9314b..af7c0474 100644 --- a/xrdp/xrdp_mm.c +++ b/xrdp/xrdp_mm.c @@ -172,11 +172,19 @@ xrdp_mm_send_login(struct xrdp_mm* self) index = g_strlen(self->wm->client_info->program); out_uint16_be(s, index); out_uint8a(s, self->wm->client_info->program, index); + /* send directory */ index = g_strlen(self->wm->client_info->directory); out_uint16_be(s, index); out_uint8a(s, self->wm->client_info->directory, index); + + /* send client ip */ + index = g_strlen(self->wm->client_info->client_ip); + out_uint16_be(s, index); + out_uint8a(s, self->wm->client_info->client_ip, index); + s_mark_end(s); + s_pop_layer(s, channel_hdr); out_uint32_be(s, 0); /* version */ index = (int)(s->end - s->data); |