mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
Always allow debugging from localhost
This commit is contained in:
parent
f4b35e3717
commit
a6a1b25f2d
1 changed files with 8 additions and 0 deletions
|
|
@ -449,6 +449,14 @@ class Debug
|
|||
{
|
||||
return $cache = true;
|
||||
}
|
||||
if (\RX_CLIENT_IP === '127.0.0.1' || \RX_CLIENT_IP === '::1')
|
||||
{
|
||||
return $cache = true;
|
||||
}
|
||||
if (\RX_CLIENT_IP === $_SERVER['SERVER_ADDR'] || \RX_CLIENT_IP === $_SERVER['LOCAL_ADDR'])
|
||||
{
|
||||
return $cache = true;
|
||||
}
|
||||
return $cache = false;
|
||||
|
||||
case 'admin':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue