diff --git a/system/classes/Kohana/Request.php b/system/classes/Kohana/Request.php index 84bf9dc..be0266b 100644 --- a/system/classes/Kohana/Request.php +++ b/system/classes/Kohana/Request.php @@ -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