diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2007-10-13 23:51:13 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2007-10-13 23:51:13 +0000 |
commit | 1f6d9c48f4b8f5a03433ce64e3f9712f0fa9f290 (patch) | |
tree | 83f35263a0969ffb13009a94003171ea45643966 /usr/local/www/widgets | |
parent | 645140bb3db4d0011a9fb17b1238e4e1cf17587f (diff) | |
download | pfsense-1f6d9c48f4b8f5a03433ce64e3f9712f0fa9f290.zip pfsense-1f6d9c48f4b8f5a03433ce64e3f9712f0fa9f290.tar.gz |
Do not create array items for disabled vpn tunnels
Diffstat (limited to 'usr/local/www/widgets')
-rw-r--r-- | usr/local/www/widgets/widgets/ipsec.widget.php | 8 |
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'], |