summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_ipsec.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-09-08 22:19:52 +0200
committerErmal <eri@pfsense.org>2014-09-08 22:19:52 +0200
commitea0efb36dd85f868531cfe55a87ff49766a2972b (patch)
tree2054f4c590d55f0fcc5a542e3f55ba402b347ba1 /usr/local/www/diag_ipsec.php
parentc245a8460ab318d527f1c51cfc53f76494208885 (diff)
downloadpfsense-ea0efb36dd85f868531cfe55a87ff49766a2972b.zip
pfsense-ea0efb36dd85f868531cfe55a87ff49766a2972b.tar.gz
Show properly a setting of any for Identifiers to use in the status page
Diffstat (limited to 'usr/local/www/diag_ipsec.php')
-rw-r--r--usr/local/www/diag_ipsec.php18
1 files changed, 12 insertions, 6 deletions
diff --git a/usr/local/www/diag_ipsec.php b/usr/local/www/diag_ipsec.php
index 0bfb050..8adfa0e 100644
--- a/usr/local/www/diag_ipsec.php
+++ b/usr/local/www/diag_ipsec.php
@@ -132,9 +132,12 @@ $status = ipsec_smp_dump_status();
<?php if (!is_array($ikesa['local']))
echo "Unknown";
else {
- if (!empty($ikesa['local']['identification']))
- echo htmlspecialchars($ikesa['local']['identification']);
- else
+ if (!empty($ikesa['local']['identification'])) {
+ if ($ikesa['local']['identification'] == '%any')
+ echo 'Any identifier';
+ else
+ echo htmlspecialchars($ikesa['local']['identification']);
+ } else
echo 'Unknown';
}
?>
@@ -156,9 +159,12 @@ $status = ipsec_smp_dump_status();
<?php if (!is_array($ikesa['remote']))
echo "Unknown";
else {
- if (!empty($ikesa['remote']['identification']))
- echo htmlspecialchars($ikesa['remote']['identification']);
- else
+ if (!empty($ikesa['remote']['identification'])) {
+ if ($ikesa['remote']['identification'] == '%any')
+ echo 'Any identifier';
+ else
+ echo htmlspecialchars($ikesa['remote']['identification']);
+ } else
echo 'Unknown';
}
?>
OpenPOWER on IntegriCloud