MDL-69562 admin: Allow getting IP from all sources.

This commit is contained in:
David Castro 2020-12-29 13:29:33 -05:00 committed by David Castro
parent 9dabd071fe
commit 15527bf4a8
2 changed files with 44 additions and 1 deletions

View file

@ -9284,7 +9284,7 @@ function remoteip_in_list($list) {
function getremoteaddr($default='0.0.0.0') {
global $CFG;
if (empty($CFG->getremoteaddrconf)) {
if (!isset($CFG->getremoteaddrconf)) {
// This will happen, for example, before just after the upgrade, as the
// user is redirected to the admin screen.
$variablestoskip = GETREMOTEADDR_SKIP_DEFAULT;