Commit c4c3fed0 authored by Fabrice Bellet's avatar Fabrice Bellet Committed by Olivier Crête
Browse files

agent: reject addition of peer-reflexive remote candidates

Peer-reflexive candidates are not supposed to be set by the application,
since they are not exchanged in the SDP.
parent 183142a7
Pipeline #243807 passed with stages
in 16 minutes and 55 seconds
...@@ -3773,6 +3773,8 @@ static gboolean priv_add_remote_candidate ( ...@@ -3773,6 +3773,8 @@ static gboolean priv_add_remote_candidate (
NiceCandidateImpl *c; NiceCandidateImpl *c;
CandidateCheckPair *pair; CandidateCheckPair *pair;
if (type == NICE_CANDIDATE_TYPE_PEER_REFLEXIVE)
return FALSE;
if (transport == NICE_CANDIDATE_TRANSPORT_UDP && if (transport == NICE_CANDIDATE_TRANSPORT_UDP &&
!agent->use_ice_udp) !agent->use_ice_udp)
return FALSE; 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