mirror of
https://github.com/g0ldyy/comet.git
synced 2026-01-12 01:16:12 +01:00
feat: ability to disable max connection
This commit is contained in:
@@ -608,6 +608,7 @@ async def playback(request: Request, b64config: str, hash: str, index: str):
|
||||
connection["ip"] == ip
|
||||
and connection["connections"]
|
||||
>= settings.PROXY_DEBRID_STREAM_MAX_CONNECTIONS
|
||||
and settings.PROXY_DEBRID_STREAM_MAX_CONNECTIONS != -1
|
||||
for connection in active_ip_connections
|
||||
):
|
||||
return FileResponse("comet/assets/proxylimit.mp4")
|
||||
|
||||
Reference in New Issue
Block a user