diff options
author | Fabrice Bellet <fabrice@bellet.info> | 2019-06-12 14:50:35 +0200 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2019-07-04 17:03:43 -0400 |
commit | 3e25df775b1be7ac01749e228a4914f2a9b24200 (patch) | |
tree | 15761f070825b7e5cd5314fa1c3cab45e48f4945 | |
parent | 43f3d70e865b0c007ec50c20ed2f0ad669ed8c80 (diff) | |
download | libnice-3e25df775b1be7ac01749e228a4914f2a9b24200.tar.gz |
conncheck: make oc2007r2 mode more rfc5245 friendly
-rw-r--r-- | agent/conncheck.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/agent/conncheck.c b/agent/conncheck.c index ca3ed6b..6c4c660 100644 --- a/agent/conncheck.c +++ b/agent/conncheck.c @@ -2163,7 +2163,7 @@ int conn_check_add_for_candidate (NiceAgent *agent, guint stream_id, NiceCompone /* note: according to 7.2.1.3, "Learning Peer Reflexive Candidates", * the agent does not pair this candidate with any local candidates. */ - if (agent->compatibility == NICE_COMPATIBILITY_RFC5245 && + if (NICE_AGENT_IS_COMPATIBLE_WITH_RFC5245_OR_OC2007R2 (agent) && remote->type == NICE_CANDIDATE_TYPE_PEER_REFLEXIVE) { return added; @@ -2209,7 +2209,7 @@ int conn_check_add_for_local_candidate (NiceAgent *agent, guint stream_id, NiceC * with other remote candidates */ - if (agent->compatibility == NICE_COMPATIBILITY_RFC5245 && + if (NICE_AGENT_IS_COMPATIBLE_WITH_RFC5245_OR_OC2007R2 (agent) && local->type == NICE_CANDIDATE_TYPE_PEER_REFLEXIVE) { return added; |