diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2017-06-08 16:34:21 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2017-06-08 16:34:21 -0400 |
commit | 80c613699786567fd93db74377138600794a86e0 (patch) | |
tree | b38de9d90b2c82f093290a00438771932417e579 | |
parent | b4abda09c79e4ce372a3771300abf568c85c7ff5 (diff) | |
download | libnice-80c613699786567fd93db74377138600794a86e0.tar.gz |
agent: Use base_addr to generate rport in SDP
Reported by Capricornus (zhushengliang)
https://phabricator.freedesktop.org/T7763
-rw-r--r-- | agent/agent.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |