feat: ability to disable max connection

This commit is contained in:
Goldy
2024-11-17 00:45:34 +01:00
committed by GitHub
parent 99490ac051
commit 9ebcb71ef1
+1
View File
@@ -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")