Display remote host in IPsec Status Overview (#4234)

Add a new 'Remote Host' column to the IPsec status overview page.
This commit is contained in:
garlic17 2020-12-16 12:04:28 +01:00 committed by GitHub
parent 5509fabfa3
commit 496c2ef24f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -187,6 +187,7 @@ include("head.inc");
<table class="table table-condensed">
<thead>
<tr>
<th><?= gettext("Remote Host");?></th>
<th><?= gettext("Local subnets");?></th>
<th class="hidden-xs hidden-sm"><?= gettext("SPI(s)");?></th>
<th><?= gettext("Remote subnets");?></th>
@ -198,6 +199,9 @@ include("head.inc");
<?php foreach ($ipsec_conn['sas'] as $sa_key => $sa):?>
<?php foreach ($sa['child-sas'] as $child_sa_key => $child_sa):?>
<tr>
<td>
<?= $sa['remote-host'] ?>
</td>
<td>
<?= implode('<br/>', $child_sa['local-ts'])?>
</td>