From 645140bb3db4d0011a9fb17b1238e4e1cf17587f Mon Sep 17 00:00:00 2001 From: Seth Mos Date: Sat, 13 Oct 2007 23:43:08 +0000 Subject: Do no show disabled tunnels --- usr/local/www/diag_ipsec.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'usr') 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) { Status +foreach ($config['ipsec']['tunnel'] as $ipsec) { + if(! $ipsec{'disabled'}) { +?>
@@ -121,7 +123,10 @@ foreach ($config['ipsec']['tunnel'] as $ipsec): ?> - + -- cgit v1.1