mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Unbreak the DNS rebind check when accessing over IPv4
This commit is contained in:
parent
826ac52c68
commit
4fcab77bf1
@ -69,7 +69,8 @@ if (function_exists("display_error_form") && !isset($config['system']['webgui'][
|
||||
$http_host = str_replace(array("[", "]"), "", implode(":", $http_host_port));
|
||||
}
|
||||
} else {
|
||||
$http_host = $_SERVER['HTTP_HOST'];
|
||||
$http_host = explode(":", $_SERVER['HTTP_HOST']);
|
||||
$http_host = $http_host[0];
|
||||
}
|
||||
if(is_ipaddr($http_host) or $_SERVER['SERVER_ADDR'] == "127.0.0.1" or
|
||||
strcasecmp($http_host, "localhost") == 0 or $_SERVER['SERVER_ADDR'] == "::1")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user