Merge branch 'develop' into feature

This commit is contained in:
Jeremy Stretch
2023-11-09 16:06:26 -05:00
32 changed files with 334 additions and 54 deletions

View File

@@ -17,7 +17,7 @@ def get_client_ip(request, additional_headers=()):
)
for header in HTTP_HEADERS:
if header in request.META:
client_ip = request.META[header].split(',')[0]
client_ip = request.META[header].split(',')[0].partition(':')[0]
try:
return IPAddress(client_ip)
except ValueError: