Commit 7dfa6d44 authored by Franco Fichtner's avatar Franco Fichtner

authgui: fix another crash report

parent e99e042a
...@@ -336,15 +336,14 @@ function display_login_form() ...@@ -336,15 +336,14 @@ function display_login_form()
} }
} }
if (isset($config['virtualip'])) { if (isset($config['virtualip']['vip'])) {
if ($config['virtualip']['vip']) { foreach ($config['virtualip']['vip'] as $vip) {
foreach ($config['virtualip']['vip'] as $vip) { if ($vip['subnet'] == $http_host) {
if ($vip['subnet'] == $http_host) { $local_ip = true;
$local_ip = true;
}
} }
} }
} }
if (isset($config['openvpn']['openvpn-server'])) { if (isset($config['openvpn']['openvpn-server'])) {
foreach ($config['openvpn']['openvpn-server'] as $ovpns) { foreach ($config['openvpn']['openvpn-server'] as $ovpns) {
if (is_ipaddrv4($http_host) && !empty($ovpns['tunnel_network']) && ip_in_subnet($http_host, $ovpns['tunnel_network'])) { if (is_ipaddrv4($http_host) && !empty($ovpns['tunnel_network']) && ip_in_subnet($http_host, $ovpns['tunnel_network'])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment