Commit 70925d89 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Do not send scope ID over the wire

parent 638edbb1
......@@ -1970,12 +1970,14 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args,
int sport = var_GetInteger (p_access, "src-port");
httpd_ServerIP( cl, ip );
fprintf( stderr, "src = %s, ip = %s\n", src, ip );
if( ( src != NULL ) && strcmp( src, ip ) )
{
/* Specify source IP if it is different from the RTSP
* control connection server address */
char *ptr = strchr( src, '%' );
if( ptr != NULL ) *ptr = '\0'; /* remove scope ID */
httpd_MsgAdd( answer, "Transport",
"RTP/AVP/UDP;unicast;source=%s;"
"client_port=%u-%u;server_port=%u-%u;"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment