mirror of
https://github.com/moodle/moodle.git
synced 2025-04-07 09:23:31 +02:00
MDL-68125 core: Fixed $CFG->reverseproxyignore install regression
This commit is contained in:
parent
9df2f66fb4
commit
17b04bdb25
@ -9207,7 +9207,7 @@ function getremoteaddr($default='0.0.0.0') {
|
||||
|
||||
$forwardedaddresses = array_filter($forwardedaddresses, function($ip) {
|
||||
global $CFG;
|
||||
return !\core\ip_utils::is_ip_in_subnet_list($ip, $CFG->reverseproxyignore, ',');
|
||||
return !\core\ip_utils::is_ip_in_subnet_list($ip, $CFG->reverseproxyignore ?? '', ',');
|
||||
});
|
||||
|
||||
// Multiple proxies can append values to this header including an
|
||||
|
Loading…
x
Reference in New Issue
Block a user