mirror of
https://github.com/lnbits/lnbits.git
synced 2025-05-29 17:19:22 +02:00
remove sleep (#1797)
This commit is contained in:
parent
ae9eb314cc
commit
b9db3eafe0
@ -1,4 +1,3 @@
|
||||
import asyncio
|
||||
from http import HTTPStatus
|
||||
from typing import Any, List, Tuple, Union
|
||||
from urllib.parse import parse_qs
|
||||
@ -215,7 +214,6 @@ def add_ip_block_middleware(app: FastAPI):
|
||||
request.client.host in settings.lnbits_blocked_ips
|
||||
and request.client.host not in settings.lnbits_allowed_ips
|
||||
):
|
||||
await asyncio.sleep(5)
|
||||
return JSONResponse(
|
||||
status_code=403, # Forbidden
|
||||
content={"detail": "IP is blocked"},
|
||||
|
Loading…
x
Reference in New Issue
Block a user