skip disabled phase 1 entries in status output

This commit is contained in:
Chris Buechler 2014-11-04 21:22:27 -06:00
parent 261f2efe47
commit b7419cfc0b
1 changed files with 2 additions and 0 deletions

View File

@ -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;