diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2018-10-21 11:18:00 +0200 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2018-10-21 11:18:00 +0200 |
commit | 78bdcfad5738d21b200ec283918dfd93e17b3d85 (patch) | |
tree | 7a78128a8ba41a0dc2728e5df9afa45ae0b38399 /agent/component.c | |
parent | c35a64ba13096476e52407e307825ec5688afede (diff) | |
download | libnice-78bdcfad5738d21b200ec283918dfd93e17b3d85.tar.gz |
component: Also accept TCP from udp-turn socket
Diffstat (limited to 'agent/component.c')
-rw-r--r-- | agent/component.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/agent/component.c b/agent/component.c index 3794c3d..84491e3 100644 --- a/agent/component.c +++ b/agent/component.c @@ -1506,7 +1506,8 @@ nice_component_verify_remote_candidate (NiceComponent *component, for (item = component->valid_candidates; item; item = item->next) { NiceCandidate *cand = item->data; - if (((nicesock->type == NICE_SOCKET_TYPE_TCP_BSD && + if ((((nicesock->type == NICE_SOCKET_TYPE_TCP_BSD || + nicesock->type == NICE_SOCKET_TYPE_UDP_TURN) && (cand->transport == NICE_CANDIDATE_TRANSPORT_TCP_ACTIVE || cand->transport == NICE_CANDIDATE_TRANSPORT_TCP_PASSIVE || cand->transport == NICE_CANDIDATE_TRANSPORT_TCP_SO)) || |