charon.keep_alive = 0 disables the sending of NAT keep alives
authorAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 3 Sep 2008 19:00:08 +0000 (19:00 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 3 Sep 2008 19:00:08 +0000 (19:00 -0000)
src/charon/sa/ike_sa.c

index 3cf52fc..e116ebb 100644 (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;
        }