diff options
author | Phil Davis <phil.davis@inf.org> | 2014-12-30 22:20:20 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2014-12-30 22:20:20 +0545 |
commit | 86b429b345011a696e095a5f2d4c42d87f047885 (patch) | |
tree | 82d960590472366e2ba348d981084fb3a3bde88d /usr | |
parent | 565dcf3c3c6299695058d616cdad95a5d300288e (diff) | |
download | pfsense-86b429b345011a696e095a5f2d4c42d87f047885.zip pfsense-86b429b345011a696e095a5f2d4c42d87f047885.tar.gz |
IPsec Widget allow for old settings that have no iketype
as mentioned in https://forum.pfsense.org/index.php?topic=84527.msg471919#msg471919
This change makes it work like similar if tests in /usr/local/wwwvpn_ipsec.php, and code in /etc/inc/vpn.inc that effectively defaults to ikev1 when iketype is not specified.
This should make the code here be executed and make $ikeid get the correct value to be used in later code.
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/widgets/widgets/ipsec.widget.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/widgets/widgets/ipsec.widget.php b/usr/local/www/widgets/widgets/ipsec.widget.php index 72a1f1b..791ef80 100644 --- a/usr/local/www/widgets/widgets/ipsec.widget.php +++ b/usr/local/www/widgets/widgets/ipsec.widget.php @@ -78,7 +78,7 @@ if (isset($config['ipsec']['phase1'])) { ?> if (isset($ph1ent['disabled']) || isset($ph2ent['disabled'])) continue; - if ($ph1ent['iketype'] == 'ikev1') { + if (empty($ph1ent['iketype']) || $ph1ent['iketype'] == 'ikev1') { if (!isset($ikev1num[$ph1ent['ikeid']])) $ikev1num[$ph1ent['ikeid']] = 0; else |