Skip to content

Allowed IP's bug #457

@vkamelin

Description

@vkamelin

What steps will reproduce the problem?

config:

    'bootstrap' => ['debug', 'gii'],
    'modules' => [
        'debug' => [
            'class' => 'yii\debug\Module',
            'allowedIPs' => ['*']
        ],
        'gii' => [
            'class' => 'yii\gii\Module',
        ]
    ],

What's expected?

Panel works

What do you get instead?

$debug = Yii::$app->getModule('debug');

$debug->allowedIPs returns:

array(2) {
  [0]=>
  string(9) "127.0.0.1"
  [1]=>
  string(3) "::1"
}

Panel doesn't works

Additional info

If manualy change allowedIPs in yii\debug\Module.php, it returns ['*'] and panel works

Q A
Yii version 2.0.41.1
PHP version 7.4.3
Operating system Ubuntu 20.04.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions