mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix outdated use of REMOTE_ADDR instead of RX_CLIENT_IP
This commit is contained in:
parent
b2c6547cbc
commit
4fdb51d689
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ class IpFilter
|
||||||
{
|
{
|
||||||
public function filter($ip_list, $ip = NULL)
|
public function filter($ip_list, $ip = NULL)
|
||||||
{
|
{
|
||||||
if(!$ip) $ip = $_SERVER['REMOTE_ADDR'];
|
if(!$ip) $ip = \RX_CLIENT_IP;
|
||||||
return Rhymix\Framework\Filters\IpFilter::inRanges($ip, $ip_list);
|
return Rhymix\Framework\Filters\IpFilter::inRanges($ip, $ip_list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue