Commit b5593847 authored by Olivier Crête's avatar Olivier Crête

Revert "WIP"

This reverts commit 01519677.
parent 01519677
...@@ -3622,7 +3622,6 @@ agent_recv_message_unlocked ( ...@@ -3622,7 +3622,6 @@ agent_recv_message_unlocked (
is_turn = TRUE; is_turn = TRUE;
if (!is_turn && component->turn_candidate && if (!is_turn && component->turn_candidate &&
component->turn_candidate->turn->type == NICE_RELAY_TYPE_TURN_UDP &&
nice_address_equal (message->from, nice_address_equal (message->from,
&component->turn_candidate->turn->server)) { &component->turn_candidate->turn->server)) {
is_turn = TRUE; is_turn = TRUE;
...@@ -3634,8 +3633,7 @@ agent_recv_message_unlocked ( ...@@ -3634,8 +3633,7 @@ agent_recv_message_unlocked (
TurnServer *turn = item->data; TurnServer *turn = item->data;
GSList *i = NULL; GSList *i = NULL;
if (turn->type != NICE_RELAY_TYPE_TURN_UDP || if (!nice_address_equal (message->from, &turn->server))
!nice_address_equal (message->from, &turn->server))
continue; continue;
nice_debug_verbose ("Agent %p : Packet received from TURN server candidate.", nice_debug_verbose ("Agent %p : Packet received from TURN server candidate.",
...@@ -3646,7 +3644,6 @@ agent_recv_message_unlocked ( ...@@ -3646,7 +3644,6 @@ agent_recv_message_unlocked (
NiceCandidate *cand = i->data; NiceCandidate *cand = i->data;
if (cand->type == NICE_CANDIDATE_TYPE_RELAYED && if (cand->type == NICE_CANDIDATE_TYPE_RELAYED &&
cand->turn == turn &&
cand->stream_id == stream->id) { cand->stream_id == stream->id) {
retval = nice_udp_turn_socket_parse_recv_message (cand->sockptr, &nicesock, retval = nice_udp_turn_socket_parse_recv_message (cand->sockptr, &nicesock,
message); message);
......
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