From 80c613699786567fd93db74377138600794a86e0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olivier=20Cr=C3=AAte?= Date: Thu, 8 Jun 2017 16:34:21 -0400 Subject: [PATCH] agent: Use base_addr to generate rport in SDP Reported by Capricornus (zhushengliang) https://phabricator.freedesktop.org/T7763 --- agent/agent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/agent.c b/agent/agent.c index 77fb1eb..1ff09af 100644 --- a/agent/agent.c +++ b/agent/agent.c @@ -5690,7 +5690,7 @@ _generate_candidate_sdp (NiceAgent *agent, g_string_append_printf (sdp, " typ %s", _cand_type_to_sdp (candidate->type)); if (nice_address_is_valid (&candidate->base_addr) && !nice_address_equal (&candidate->addr, &candidate->base_addr)) { - port = nice_address_get_port (&candidate->addr); + port = nice_address_get_port (&candidate->base_addr); nice_address_to_string (&candidate->base_addr, ip4); g_string_append_printf (sdp, " raddr %s rport %d", ip4, port == 0 ? 9 : port); -- 2.7.4