rtpmanager: don't pretend our random hostnames are fully-qualified domain names
This commit is contained in:
parent
a476d529d2
commit
5525e40970
@ -1901,7 +1901,7 @@ gst_rtp_bin_init (GstRtpBin * rtpbin, GstRtpBinClass * klass)
|
||||
rtpbin->use_pipeline_clock = DEFAULT_USE_PIPELINE_CLOCK;
|
||||
|
||||
/* some default SDES entries */
|
||||
cname = g_strdup_printf ("user%u@x-%u.net", g_random_int (), g_random_int ());
|
||||
cname = g_strdup_printf ("user%u@host-%x", g_random_int (), g_random_int ());
|
||||
rtpbin->sdes = gst_structure_new ("application/x-rtp-source-sdes",
|
||||
"cname", G_TYPE_STRING, cname, "tool", G_TYPE_STRING, "GStreamer", NULL);
|
||||
g_free (cname);
|
||||
|
@ -558,7 +558,7 @@ rtp_session_init (RTPSession * sess)
|
||||
/* some default SDES entries */
|
||||
|
||||
/* we do not want to leak details like the username or hostname here */
|
||||
str = g_strdup_printf ("user%u@x-%u.net", g_random_int (), g_random_int ());
|
||||
str = g_strdup_printf ("user%u@host-%x", g_random_int (), g_random_int ());
|
||||
rtp_source_set_sdes_string (sess->source, GST_RTCP_SDES_CNAME, str);
|
||||
g_free (str);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user