mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Do not show disabled tunnels
This commit is contained in:
parent
d8e4b5f593
commit
5c033d9038
@ -105,7 +105,9 @@ if (!is_array($config['ipsec']['tunnel'])) {
|
||||
<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/>
|
||||
@ -122,7 +124,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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user