summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-07-16 14:11:14 -0400
committerFrederic Guillot <fred@kanboard.net>2016-07-16 14:11:14 -0400
commit4364559805245260f89d70d590d0686250aa5f93 (patch)
treee9f7c3502d5b45ea481cdc716727afbbeeea1f43 /app
parent6cfce7720a88f383f85f9f7ea88a5dcdae87daa7 (diff)
Handle HTTP header X-Real-IP to get IP address
Diffstat (limited to 'app')
-rw-r--r--app/Core/Http/Request.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/Core/Http/Request.php b/app/Core/Http/Request.php
index e0df2d3c..2e84958d 100644
--- a/app/Core/Http/Request.php
+++ b/app/Core/Http/Request.php
@@ -301,6 +301,7 @@ class Request extends Base
public function getIpAddress()
{
$keys = array(
+ 'HTTP_X_REAL_IP',
'HTTP_CLIENT_IP',
'HTTP_X_FORWARDED_FOR',
'HTTP_X_FORWARDED',