diff options
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/local/www/vpn_ipsec.php | 8 |
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"; } |