This commit is contained in:
Emmanuel A. 2025-11-24 15:52:03 -07:00 committed by GitHub
commit 893d5f5e67
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