mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
use _check_valid_ip
This commit is contained in:
parent
0c6c350c23
commit
b94c982ec9
1 changed files with 0 additions and 2 deletions
|
@ -1225,8 +1225,6 @@ def _check_valid_ip(
|
|||
client_ip = request.headers["x-forwarded-for"]
|
||||
elif request.client is not None:
|
||||
client_ip = request.client.host
|
||||
else:
|
||||
client_ip = None
|
||||
|
||||
# Check if IP address is allowed
|
||||
if client_ip not in allowed_ips:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue