mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-17 09:24:17 +09:00
Merge pull request #376 from kijin/pr/debug-own-ip
디버그 IP 제한에 localhost는 항상 포함시킴
This commit is contained in:
commit
86e91d116e
2 changed files with 9 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':
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
Request / Response
|
||||
==================
|
||||
Request URL: <?php echo $data->url . "\n"; ?>
|
||||
Request IP Address: <?php echo \RX_CLIENT_IP . "\n"; ?>
|
||||
Request Method: <?php echo $data->request->method . "\n" ?>
|
||||
Request Body Size: <?php echo $data->request->size . "\n" ?>
|
||||
Response Method: <?php echo $data->response->method . "\n"; ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue