Commit d31cc436 authored by Youness Alaoui's avatar Youness Alaoui

do not search for local/remote candidates using the username if we are not in...

do not search for local/remote candidates using the username if we are not in google/msn mode because for draft19, the username is global, not per candidate
parent bcb6fb53
......@@ -2358,6 +2358,8 @@ gboolean conn_check_handle_inbound_stun (NiceAgent *agent, Stream *stream,
}
}
if (agent->compatibility == NICE_COMPATIBILITY_GOOGLE ||
agent->compatibility == NICE_COMPATIBILITY_MSN) {
/* We need to find which local candidate was used */
for (i = component->remote_candidates; i; i = i->next) {
for (j = component->local_candidates; j; j = j->next) {
......@@ -2396,6 +2398,7 @@ gboolean conn_check_handle_inbound_stun (NiceAgent *agent, Stream *stream,
}
}
}
}
if (agent->compatibility == NICE_COMPATIBILITY_GOOGLE &&
local_candidate == NULL &&
......@@ -2465,7 +2468,8 @@ gboolean conn_check_handle_inbound_stun (NiceAgent *agent, Stream *stream,
"peer-reflexive candidate.", agent);
remote_candidate = discovery_learn_remote_peer_reflexive_candidate (
agent, stream, component, priority, from, socket,
local_candidate, remote_candidate2);
local_candidate,
remote_candidate2 ? remote_candidate2 : remote_candidate);
}
priv_reply_to_conn_check (agent, stream, component, remote_candidate,
......
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