charon.keep_alive = 0 disables the sending of NAT keep alives

This commit is contained in:
Andreas Steffen
2008-09-03 19:00:08 +00:00
parent 3dfecde4c0
commit 60055b7e1c
+1 -1
View File
@@ -464,7 +464,7 @@ static void send_keepalive(private_ike_sa_t *this)
send_keepalive_job_t *job;
time_t last_out, now, diff;
if (!(this->conditions & COND_NAT_HERE))
if (!(this->conditions & COND_NAT_HERE) || this->keepalive_interval == 0)
{ /* disable keep alives if we are not NATed anymore */
return;
}