Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trackable don't work properly behind a proxy #1398

Merged
merged 2 commits into from Oct 22, 2011

Conversation

salidux
Copy link
Contributor

@salidux salidux commented Oct 22, 2011

If you are behind a non transparent proxy (Apache mod_proxy), user current_ip always returns proxy ip because it uses remote_ip to get user ip (http://apidock.com/rails/ActionController/Request/remote_ip).

I changed it to use request.ip who checks HTTP_X_FORWARDED_FOR header

josevalim added a commit that referenced this pull request Oct 22, 2011
Trackable don't work properly behind a proxy
@josevalim josevalim merged commit d525636 into heartcombo:master Oct 22, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants