summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2007-10-13 23:43:08 +0000
committerSeth Mos <seth.mos@xs4all.nl>2007-10-13 23:43:08 +0000
commit645140bb3db4d0011a9fb17b1238e4e1cf17587f (patch)
tree2014fd958fd855665cfe1edebed2da43cf29833e /usr
parent89f220776161316e004da29c2014a54d3a99ddbd (diff)
downloadpfsense-645140bb3db4d0011a9fb17b1238e4e1cf17587f.zip
pfsense-645140bb3db4d0011a9fb17b1238e4e1cf17587f.tar.gz
Do no show disabled tunnels
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/diag_ipsec.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/usr/local/www/diag_ipsec.php b/usr/local/www/diag_ipsec.php
index 96b1c28..14a0d46 100644
--- a/usr/local/www/diag_ipsec.php
+++ b/usr/local/www/diag_ipsec.php
@@ -104,7 +104,9 @@ if ($fd) {
<td nowrap class="listhdrr">Status</td>
</tr>
<?php
-foreach ($config['ipsec']['tunnel'] as $ipsec): ?>
+foreach ($config['ipsec']['tunnel'] as $ipsec) {
+ if(! $ipsec{'disabled'}) {
+?>
<tr>
<td class="listlr"><?=htmlspecialchars(get_ipsec_tunnel_src($ipsec));?>
<br/>
@@ -121,7 +123,10 @@ foreach ($config['ipsec']['tunnel'] as $ipsec): ?>
<td class="listr"><?=htmlspecialchars($ipsec['descr']);?></td>
<td class="listr"><?php echo output_ipsec_tunnel_status($ipsec); ?></td>
</tr>
-<?php endforeach; ?>
+<?php
+ }
+}
+?>
<?php else: ?>
<tr>
<td>
OpenPOWER on IntegriCloud