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

agent: Allow getting UDP candidates from a TURN server over TCP

Even if the TCP candidates are disabled.
parent b9da8180
......@@ -2926,13 +2926,8 @@ priv_add_new_candidate_discovery_turn (NiceAgent *agent,
agent->compatibility == NICE_COMPATIBILITY_OC2007R2))
reliable_tcp = TRUE;
/* Ignore tcp candidates if we disabled ice-tcp */
if ((agent->use_ice_udp == FALSE && reliable_tcp == FALSE) ||
(agent->use_ice_tcp == FALSE && reliable_tcp == TRUE)) {
goto skip;
}
if (turn_tcp == FALSE) {
/* Ignore reliable tcp candidates if we disabled ice-tcp */
if (agent->use_ice_tcp == FALSE && reliable_tcp == TRUE) {
goto skip;
}
......
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