Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsasha committed Apr 8, 2024
1 parent d2c2156 commit fc36d75
Show file tree
Hide file tree
Showing 3 changed files with 288 additions and 288 deletions.
2 changes: 1 addition & 1 deletion irrd/webui/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def client_ip_str(request: Optional[Request]) -> str:
def client_ip(request: Optional[Request]) -> Optional[str]:
"""Small wrapper to get the client IP from a request."""
if request:
return request.client.host if request.client else "127.0.0.1"
return request.client.host if request.client and request.client.host != "testclient" else "127.0.0.1"
return None


Expand Down
Loading

0 comments on commit fc36d75

Please sign in to comment.