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

- Add missing Carriage Return

- Do not send TTL with IN IP6
parent 7371b5b6
......@@ -637,19 +637,18 @@ static char *SDPGenerate( sap_handler_t *p_sap,
"v=0\r\n"
"o=- "I64Fd" %d IN IP%c %s\r\n"
"s=%s\r\n"
"c=IN IP%c %s/%d\r\n"
"c=IN IP%c %s%s\r\n"
"t=0 0\r\n"
"a=tool:"PACKAGE_STRING"\r\n"
"a=recvonly\r\n"
"a=type:broadcast\n"
"a=type:broadcast\r\n"
"%s"
"%s%s%s"
"m=video %d %s %d\r\n",
i_sdp_id, i_sdp_version,
ipv, p_addr->psz_machine,
psz_name, ipv, psz_uri,
/* FIXME: 1 is IPv4 default TTL, not that of IPv6 */
p_session->i_ttl ?: (config_GetInt( p_sap, "ttl" ) ?: 1),
(ipv == 4) ? "/255" : "",
(sfilter != NULL) ? sfilter : "",
psz_group ? "a=x-plgroup:" : "",
psz_group ? psz_group : "", psz_group ? "\r\n" : "",
......
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