charon.keep_alive = 0 disables the sending of NAT keep alives
This commit is contained in:
@@ -464,7 +464,7 @@ static void send_keepalive(private_ike_sa_t *this)
|
|||||||
send_keepalive_job_t *job;
|
send_keepalive_job_t *job;
|
||||||
time_t last_out, now, diff;
|
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 */
|
{ /* disable keep alives if we are not NATed anymore */
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user