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

agent: Ignore remote candidate of non-accepted types

If we disable ice-tcp or ice-udp, ignore the remote
candidates for those types.
parent f49ab88f
......@@ -3112,6 +3112,13 @@ static gboolean priv_add_remote_candidate (
NiceComponent *component;
NiceCandidate *candidate;
if (transport == NICE_CANDIDATE_TRANSPORT_UDP &&
!agent->use_ice_udp)
return FALSE;
if (transport != NICE_CANDIDATE_TRANSPORT_UDP &&
!agent->use_ice_tcp)
return FALSE;
if (!agent_find_component (agent, stream_id, component_id, NULL, &component))
return FALSE;
......
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