summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2015-01-13 20:43:59 +0100
committerErmal LUÇI <eri@pfsense.org>2015-01-13 20:43:59 +0100
commit3a56c1466340d09e23f91e2917ac93a75141d68a (patch)
treeae41aa045d3017991ae43bfd26a8c1033f1d1540
parent656fd270f0a59227ad60c8eff41599d5fd39e0e8 (diff)
downloadpfsense-3a56c1466340d09e23f91e2917ac93a75141d68a.zip
pfsense-3a56c1466340d09e23f91e2917ac93a75141d68a.tar.gz
Actually remove rekey/reauth from config to avoid strange issues. Ticket #4208
-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