From 7f0df1746a184326e2ed58467bbb05938f221e3a Mon Sep 17 00:00:00 2001 From: Gibheer Date: Wed, 5 Mar 2014 10:06:07 +0100 Subject: correct forwarded-for header --- lib/zero/request/client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/zero/request/client.rb b/lib/zero/request/client.rb index eba4d7a..97b991d 100644 --- a/lib/zero/request/client.rb +++ b/lib/zero/request/client.rb @@ -5,7 +5,7 @@ module Zero # the key for the ip of the client KEY_REMOTE_ADDR = 'REMOTE_ADDR' # in proxy setups, this is the real address of the client - KEY_FORWARDED_FOR = 'X_FORWARDED_FOR' + KEY_FORWARDED_FOR = 'HTTP_X_FORWARDED_FOR' # the key for the hostname KEY_REMOTE_HOST = 'REMOTE_HOST' # the key for the user agent -- cgit v1.2.3-70-g09d2