summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2014-12-24 18:47:30 +0100
committerErmal LUÇI <eri@pfsense.org>2014-12-24 18:47:30 +0100
commit5afffea4725a28e3cd21d8b8846e552d3ef1ad87 (patch)
tree21a02eca10b1ff0111c898b6bd47bfa03d84fdd0 /usr
parenta47e038c6094217ca0d3637f09763b3b264aedbf (diff)
downloadpfsense-5afffea4725a28e3cd21d8b8846e552d3ef1ad87.zip
pfsense-5afffea4725a28e3cd21d8b8846e552d3ef1ad87.tar.gz
Fix displaying description for IKEv1 connected tunnels
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/diag_ipsec.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr/local/www/diag_ipsec.php b/usr/local/www/diag_ipsec.php
index e6347c5..b14838f 100644
--- a/usr/local/www/diag_ipsec.php
+++ b/usr/local/www/diag_ipsec.php
@@ -137,8 +137,9 @@ $status = ipsec_smp_dump_status();
if ($ikesa['version'] == 1) {
$ph1idx = substr($con_id, 0, strrpos(substr($con_id, 0, -1), '00'));
$ipsecconnected[$ph1idx] = $ph1idx;
- } else
- $ipsecconnected[$con_id] = $con_id;
+ } else {
+ $ipsecconnected[$con_id] = $ph1idx = $con_id;
+ }
if (ipsec_phase1_status($status['query']['ikesalist']['ikesa'], $ikesa['id']))
$icon = "pass";
@@ -150,7 +151,7 @@ $status = ipsec_smp_dump_status();
<tr>
<td class="listlr">
<?php
- echo htmlspecialchars(ipsec_get_descr($con_id));
+ echo htmlspecialchars(ipsec_get_descr($ph1idx));
?>
</td>
<td class="listr">
OpenPOWER on IntegriCloud