Skip to content

Commit

Permalink
hotfix: correct ip_address hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Gray-Advantage committed Apr 10, 2024
1 parent 3f763d4 commit 9b160b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datanar/redirects/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def post(self, request, *args, **kwargs):
return render(request, "redirect/redirect.html", {"form": form})

def perform_redirect(self, redirect):
ip_address = self.request.META.get("REMOTE_ADDR", None)
ip_address = self.request.META.get("HTTP_X_REAL_IP", None)

try:
country = geo_ip.country_name(ip_address)
Expand Down

0 comments on commit 9b160b0

Please sign in to comment.