Merge pull request #1 from homescriptone/manutheblacker-patch-session-reuse-detected

Fix "Session reuse detected, IPAddress logged.",
This commit is contained in:
Emmanuel A. 2025-04-05 03:05:22 +01:00 committed by GitHub
commit c28c772160
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ class secMiddleware:
LOW = 1
def get_client_ip(request):
ip = request.META.get('HTTP_CF_CONNECTING_IP')
ip = request.META.get('HTTP_CF_CONNECTING_IP') | request.META.get('True-Client-IP')
if ip is None:
ip = request.META.get('REMOTE_ADDR')
return ip