Skip to content

Commit

Permalink
Do not use a local network ip as HTTP_X_FORWARDED_FOR header
Browse files Browse the repository at this point in the history
If HTTP_X_FORWARDED_FOR is a local network IP the HTTP_CLIENT_IP
need to be set
  • Loading branch information
rafaelfranca committed Jan 10, 2012
1 parent ead414d commit d699b80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/trackable_test.rb
Expand Up @@ -40,7 +40,7 @@ class TrackableHooksTest < ActionController::IntegrationTest
test "current remote ip returns original ip behind a non transparent proxy" do
user = create_user

arbitrary_ip = '192.168.1.69'
arbitrary_ip = '200.121.1.69'
sign_in_as_user do
header 'HTTP_X_FORWARDED_FOR', arbitrary_ip
end
Expand Down

0 comments on commit d699b80

Please sign in to comment.