diff options
author | Ermal LUÇI <eri@pfsense.org> | 2014-12-24 18:39:03 +0100 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2014-12-24 18:39:03 +0100 |
commit | 6a802ab48e522ad0cd6d45875ebd8bbc987cbaf5 (patch) | |
tree | b9e0596d2ea9cc966a0489370c4b48acb7b61a3c | |
parent | 87f2ea892aac5b20913ed15db8892d11aee83042 (diff) | |
download | pfsense-6a802ab48e522ad0cd6d45875ebd8bbc987cbaf5.zip pfsense-6a802ab48e522ad0cd6d45875ebd8bbc987cbaf5.tar.gz |
Add checks for ghost phase2 and no need to check for number of phase2 here
-rw-r--r-- | usr/local/www/widgets/widgets/ipsec.widget.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/widgets/widgets/ipsec.widget.php b/usr/local/www/widgets/widgets/ipsec.widget.php index 0448ac7..2bc721f 100644 --- a/usr/local/www/widgets/widgets/ipsec.widget.php +++ b/usr/local/www/widgets/widgets/ipsec.widget.php @@ -71,13 +71,13 @@ if (isset($config['ipsec']['phase1'])) { ?> foreach ($config['ipsec']['phase2'] as $ph2ent){ if ($ph2ent['remoteid']['type'] == "mobile") continue; - ipsec_lookup_phase1($ph2ent,$ph1ent); + if (!ipsec_lookup_phase1($ph2ent,$ph1ent)) + continue; if (isset($ph1ent['disabled']) || isset($ph2ent['disabled'])) continue; - $ph2number = ipsec_get_number_of_phase2($ph1ent['ikeid']); - if ($ph1ent['iketype'] == 'ikev1' && $ph2number > 1) { + if ($ph1ent['iketype'] == 'ikev1') { if (!isset($ikev1num[$ph1ent['ikeid']])) $ikev1num[$ph1ent['ikeid']] = 0; else |