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

REMOTE_ADDR showing up as blank #115

Open
YPCrumble opened this issue Feb 5, 2019 · 0 comments
Open

REMOTE_ADDR showing up as blank #115

YPCrumble opened this issue Feb 5, 2019 · 0 comments

Comments

@YPCrumble
Copy link
Collaborator

My REMOTE_ADDR is always blank. I just ran into an issue where a Django package expected request.META['REMOTE_ADDR'] to be the user's IP address and it's causing my application to error out.

My current solution is to add a middleware to manually use HTTP_X_FORWARDED_FOR to overwrite REMOTE_ADDR, but leaving this issue here if anyone using this repo has an NGINX setting they use to set the REMOTE_ADDR setting.

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

1 participant