From b7419cfc0bd677d1e5c254d1e5f9e098774b7af6 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Tue, 4 Nov 2014 21:22:27 -0600 Subject: [PATCH] skip disabled phase 1 entries in status output --- usr/local/www/diag_ipsec.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr/local/www/diag_ipsec.php b/usr/local/www/diag_ipsec.php index 18686d0e0..efb9957e6 100644 --- a/usr/local/www/diag_ipsec.php +++ b/usr/local/www/diag_ipsec.php @@ -389,6 +389,8 @@ $status = ipsec_smp_dump_status(); $rgmap = array(); foreach ($a_phase1 as $ph1ent): + if (isset($ph1ent['disabled'])) + continue; $rgmap[$ph1ent['remote-gateway']] = $ph1ent['remote-gateway']; if ($ipsecconnected[$ph1ent['ikeid']]) continue;