Merge branch 'MDL-68125-regression-MOODLE_37_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_37_STABLE
This commit is contained in:
+1
-1
@@ -9141,7 +9141,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
|
||||
|
||||
Reference in New Issue
Block a user