summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www')
-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