summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www
diff options
context:
space:
mode:
authorPiBa-NL <pba_2k3@yahoo.com>2017-03-30 21:20:18 +0200
committerPiBa-NL <pba_2k3@yahoo.com>2017-03-30 21:20:18 +0200
commitac24ac6bbb5b94e1eb8420404a9b7bd9daf998b7 (patch)
treeffdea0d5b11f61ceebb0046342f6e86e80518e12 /src/usr/local/www
parent11b9896609c2998106d5503fe2581bb3304b4a5f (diff)
downloadpfsense-ac24ac6bbb5b94e1eb8420404a9b7bd9daf998b7.zip
pfsense-ac24ac6bbb5b94e1eb8420404a9b7bd9daf998b7.tar.gz
ipsec overview, check label exists for interface including disabled ones, tell what was configured if not found.
Diffstat (limited to 'src/usr/local/www')
-rw-r--r--src/usr/local/www/vpn_ipsec.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/usr/local/www/vpn_ipsec.php b/src/usr/local/www/vpn_ipsec.php
index 36ad6a1..df1e6e9 100644
--- a/src/usr/local/www/vpn_ipsec.php
+++ b/src/usr/local/www/vpn_ipsec.php
@@ -258,7 +258,7 @@ if (is_subsystem_dirty('ipsec')) {
</thead>
<tbody class="p1-entries">
<?php
-$iflabels = get_configured_interface_with_descr();
+$iflabels = get_configured_interface_with_descr(false, true);
$viplist = get_configured_vip_list();
foreach ($viplist as $vip => $address) {
$iflabels[$vip] = $address;
@@ -308,7 +308,11 @@ $i = 0; foreach ($a_phase1 as $ph1ent):
<td>
<?php
if ($ph1ent['interface']) {
- $if = htmlspecialchars($iflabels[$ph1ent['interface']]);
+ if (isset($iflabels[$ph1ent['interface']])) {
+ $if = htmlspecialchars($iflabels[$ph1ent['interface']]);
+ } else {
+ $if = sprintf("Interface not found: '%s'", $ph1ent['interface']);
+ }
} else {
$if = "WAN";
}
OpenPOWER on IntegriCloud