Commit 5decdd9d authored by Olivier Crête's avatar Olivier Crête

agent: Also check the kept turn candidate

When the turn candidate has been stored outside the list, then
also check it.
parent caed1cb3
......@@ -2974,6 +2974,14 @@ agent_recv_message_unlocked (
if (nicesock->type == NICE_SOCKET_TYPE_UDP_TURN ||
nicesock->type == NICE_SOCKET_TYPE_UDP_TURN_OVER_TCP)
is_turn = TRUE;
if (!is_turn && component->turn_candidate &&
nice_address_equal (message->from,
&component->turn_candidate->turn->server)) {
is_turn = TRUE;
retval = nice_udp_turn_socket_parse_recv_message (
component->turn_candidate->sockptr, &nicesock, message);
}
for (item = component->turn_servers; item && !is_turn;
item = g_list_next (item)) {
TurnServer *turn = item->data;
......
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