Added another method to determine client IP address
This commit is contained in:
parent
fd134e7f87
commit
6415652743
@ -124,6 +124,11 @@ class Kohana_Request implements HTTP_Request {
|
||||
|
||||
unset($client_ips);
|
||||
}
|
||||
elseif (isset($_SERVER['HTTP_X_REAL_IP']))
|
||||
{
|
||||
// The remote IP address
|
||||
Request::$client_ip = $_SERVER['HTTP_X_REAL_IP'];
|
||||
}
|
||||
elseif (isset($_SERVER['REMOTE_ADDR']))
|
||||
{
|
||||
// The remote IP address
|
||||
|
Reference in New Issue
Block a user