summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_ipsec_phase1.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/vpn_ipsec_phase1.php')
-rw-r--r--usr/local/www/vpn_ipsec_phase1.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/local/www/vpn_ipsec_phase1.php b/usr/local/www/vpn_ipsec_phase1.php
index a0735b5..9463d2f 100644
--- a/usr/local/www/vpn_ipsec_phase1.php
+++ b/usr/local/www/vpn_ipsec_phase1.php
@@ -371,8 +371,12 @@ if ($_POST) {
if (isset($pconfig['reauth_enable']))
$ph1ent['reauth_enable'] = true;
+ else
+ unset($ph1ent['reauth_enable']);
if (isset($pconfig['rekey_enable']))
$ph1ent['rekey_enable'] = true;
+ else
+ unset($ph1ent['rekey_enable']);
if (isset($pconfig['dpd_enable'])) {
$ph1ent['dpd_delay'] = $pconfig['dpd_delay'];
OpenPOWER on IntegriCloud