mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 02:46:40 +02:00
MDL-69562 admin: Allow getting IP from all sources.
This commit is contained in:
parent
9dabd071fe
commit
15527bf4a8
2 changed files with 44 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue