summaryrefslogtreecommitdiffstats
path: root/usr/local/www/widgets
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2014-12-30 22:20:20 +0545
committerChris Buechler <cmb@pfsense.org>2014-12-30 20:43:24 -0600
commit1142d9a06b377dcb8b764288fafc53cf7e54470e (patch)
tree1c07e8c6c009f735eeb52eba0f104a6c9d43782b /usr/local/www/widgets
parent6e26b9c554281014e51d6384edb7395b76d17063 (diff)
downloadpfsense-1142d9a06b377dcb8b764288fafc53cf7e54470e.zip
pfsense-1142d9a06b377dcb8b764288fafc53cf7e54470e.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/local/www/widgets')
-rw-r--r--usr/local/www/widgets/widgets/ipsec.widget.php2
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
OpenPOWER on IntegriCloud