From 5c033d9038228f38665f3cb0e2dceb43d2ba0ff8 Mon Sep 17 00:00:00 2001 From: Seth Mos Date: Sat, 13 Oct 2007 23:46:11 +0000 Subject: [PATCH] Do not show disabled tunnels --- usr/local/www/diag_ipsec.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/usr/local/www/diag_ipsec.php b/usr/local/www/diag_ipsec.php index 247a90384f..41d96e41b5 100644 --- a/usr/local/www/diag_ipsec.php +++ b/usr/local/www/diag_ipsec.php @@ -105,7 +105,9 @@ if (!is_array($config['ipsec']['tunnel'])) { Status +foreach ($config['ipsec']['tunnel'] as $ipsec) { + if(! $ipsec['disabled']) { +?>
@@ -122,7 +124,10 @@ foreach ($config['ipsec']['tunnel'] as $ipsec): ?> - +