Skip to content

Conversation

@ar3ph
Copy link

@ar3ph ar3ph commented Dec 6, 2025

Updates #57 to:

  • Merge latest master
  • Use request.settings.IP_DUMMY for unknown IPs
  • format code

Closes #54.

gidantribal and others added 8 commits August 29, 2014 14:15
Added proper depencency
Accept local/non routable IPs and provide a default value in the rare
case the machine has no IP (???), as IP is mandatory in the DB.
@ar3ph ar3ph changed the title (#54 Update) Show real remote IP when using reverse proxy (e.g. nginx, caddy...) (#57 Update) Show real remote IP when using reverse proxy (e.g. nginx, caddy...) Dec 6, 2025
@ar3ph
Copy link
Author

ar3ph commented Dec 7, 2025

Technically it's possible to change request.META["REMOTE_ADDR"] before the Request middleware using another middleware. But still:

  1. what do you think about adding ipware as a dependency?
  2. if you think ipware bloat, is fetching the real IP with no dependency an acceptable upgrade?

cc @felixxm

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

Successfully merging this pull request may close these issues.

Local host IP is shown (127.0.0.1) instead of real remote IP while using proxy

2 participants