summaryrefslogtreecommitdiff
path: root/agent/conncheck.c
diff options
context:
space:
mode:
Diffstat (limited to 'agent/conncheck.c')
-rw-r--r--agent/conncheck.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/agent/conncheck.c b/agent/conncheck.c
index 64a3cb8..d267429 100644
--- a/agent/conncheck.c
+++ b/agent/conncheck.c
@@ -1340,8 +1340,9 @@ static gboolean priv_conn_keepalive_tick_unlocked (NiceAgent *agent)
if (component->selected_pair.local != NULL) {
CandidatePair *p = &component->selected_pair;
- /* Disable keepalive checks on TCP candidates */
- if (p->local->transport != NICE_CANDIDATE_TRANSPORT_UDP)
+ /* Disable keepalive checks on TCP candidates unless explicitly enabled */
+ if (p->local->transport != NICE_CANDIDATE_TRANSPORT_UDP &&
+ !agent->keepalive_conncheck)
continue;
if (agent->compatibility == NICE_COMPATIBILITY_GOOGLE ||