Commit b5b6637f authored by Franco Fichtner's avatar Franco Fichtner

auth: fix another crash report

parent 6819d409
...@@ -193,15 +193,13 @@ function isAuthLocalIP($http_host) { ...@@ -193,15 +193,13 @@ function isAuthLocalIP($http_host) {
} }
} }
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;
} }
} }
} }
}
return $local_ip; return $local_ip;
} }
......
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