summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2007-10-13 23:51:13 +0000
committerSeth Mos <seth.mos@xs4all.nl>2007-10-13 23:51:13 +0000
commit1f6d9c48f4b8f5a03433ce64e3f9712f0fa9f290 (patch)
tree83f35263a0969ffb13009a94003171ea45643966 /usr
parent645140bb3db4d0011a9fb17b1238e4e1cf17587f (diff)
downloadpfsense-1f6d9c48f4b8f5a03433ce64e3f9712f0fa9f290.zip
pfsense-1f6d9c48f4b8f5a03433ce64e3f9712f0fa9f290.tar.gz
Do not create array items for disabled vpn tunnels
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/widgets/widgets/ipsec.widget.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr/local/www/widgets/widgets/ipsec.widget.php b/usr/local/www/widgets/widgets/ipsec.widget.php
index 526fd63..540eab6 100644
--- a/usr/local/www/widgets/widgets/ipsec.widget.php
+++ b/usr/local/www/widgets/widgets/ipsec.widget.php
@@ -54,6 +54,11 @@
$tun_disabled = "false";
$foundsrc = false;
$founddst = false;
+
+ if (isset($tunnel['disabled'])) {
+ $tun_disabled = "true";
+ continue;
+ }
if(output_ipsec_tunnel_status($tunnel)) {
/* tunnel is up */
@@ -65,9 +70,6 @@
$inactivecounter++;
}
- if (isset($tunnel['disabled'])) {
- $tun_disabled = "true";
- }
$ipsec_detail_array[] = array('src' => $tunnel['interface'],
'dest' => $tunnel['remote-gateway'],
'remote-subnet' => $tunnel['remote-subnet'],
OpenPOWER on IntegriCloud