From 5c85e614c0c997d0f8f504c0dda5dade8eb5516d Mon Sep 17 00:00:00 2001 From: jneubrand Date: Sat, 26 Nov 2016 11:48:03 -0800 Subject: [PATCH] Merge fix-clip --- rtsp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rtsp.c b/rtsp.c index 5f905d90..9464a22b 100644 --- a/rtsp.c +++ b/rtsp.c @@ -1918,7 +1918,8 @@ void rtsp_listen_loop(void) { inet_ntop(AF_INET, &(sa->sin_addr), remote_ip4, INET_ADDRSTRLEN); unsigned short int rport = ntohs(sa->sin_port); #ifdef CONFIG_METADATA - send_ssnc_metadata('clip', strdup(ip4), strlen(ip4), 1); + send_ssnc_metadata('clip', strdup(remote_ip4), strlen(remote_ip4) , 1); + send_ssnc_metadata('svip', strdup(ip4), strlen(ip4) , 1); #endif debug(1, "New RTSP connection from %s:%u to self at %s:%u.", remote_ip4, rport, ip4, tport); @@ -1938,7 +1939,8 @@ void rtsp_listen_loop(void) { inet_ntop(AF_INET6, &(sa6->sin6_addr), remote_ip6, INET6_ADDRSTRLEN); u_int16_t rport = ntohs(sa6->sin6_port); #ifdef CONFIG_METADATA - send_ssnc_metadata('clip', strdup(ip6), strlen(ip6), 1); + send_ssnc_metadata('clip', strdup(remote_ip6), strlen(remote_ip6), 1); + send_ssnc_metadata('svip', strdup(ip6), strlen(ip6), 1); #endif debug(1, "New RTSP connection from [%s]:%u to self at [%s]:%u.", remote_ip6, rport, ip6, tport); -- 2.47.2