Skip to content

Commit 4dc4a51

Browse files
authored
Merge pull request #293 from cmu-delphi/development
Updated logging
2 parents 7e99838 + da4623f commit 4dc4a51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/epiportal/middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def _get_client_ip(request) -> str:
4848
x_forwarded_for = request.META.get("HTTP_X_FORWARDED_FOR")
4949
if x_forwarded_for:
5050
# Take the leftmost (original client) IP
51-
return x_forwarded_for.split(",")[0].strip()
51+
return x_forwarded_for
5252
return request.META.get("REMOTE_ADDR", "")
5353

5454

0 commit comments

Comments
 (0)