We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad95760 commit 217a9edCopy full SHA for 217a9ed
netbox/utilities/request.py
@@ -17,7 +17,7 @@ def get_client_ip(request, additional_headers=()):
17
)
18
for header in HTTP_HEADERS:
19
if header in request.META:
20
- client_ip = request.META[header].split(',')[0]
+ client_ip = request.META[header].split(',')[0].partition(':')[0]
21
try:
22
return IPAddress(client_ip)
23
except ValueError:
0 commit comments