mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 00:07:26 +00:00
system: refactor vip access
This commit is contained in:
parent
e6a4bde0bf
commit
d3c5aa22a0
@ -49,13 +49,9 @@ $userindex = index_users();
|
||||
*/
|
||||
function isAuthLocalIP($http_host)
|
||||
{
|
||||
global $config;
|
||||
|
||||
if (isset($config['virtualip']['vip'])) {
|
||||
foreach ($config['virtualip']['vip'] as $vip) {
|
||||
if ($vip['subnet'] == $http_host) {
|
||||
return true;
|
||||
}
|
||||
foreach (config_read_array('virtualip', 'vip') as $vip) {
|
||||
if ($vip['subnet'] == $http_host) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user