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

[www] Get user's IP using the X-Forwarded-For header #52

Closed
sndurkin opened this issue Oct 5, 2017 · 2 comments
Closed

[www] Get user's IP using the X-Forwarded-For header #52

sndurkin opened this issue Oct 5, 2017 · 2 comments

Comments

@sndurkin
Copy link
Contributor

sndurkin commented Oct 5, 2017

logging.go currently uses http.Request.RemoteAddr, but that apparently won't work behind nginx, so fetch it using the X-Forwarded-For header. Example: https://stackoverflow.com/a/26223739

@dajohi
Copy link
Member

dajohi commented Oct 18, 2017

done by @marcopeereboom

@dajohi dajohi closed this as completed Oct 18, 2017
vibros68 pushed a commit to vibros68/politeia that referenced this issue Aug 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants