From 9ebcb71ef1cd48ed9ac3079838cf4b2da1575cc2 Mon Sep 17 00:00:00 2001 From: Goldy <153996346+g0ldyy@users.noreply.github.com> Date: Sun, 17 Nov 2024 00:45:34 +0100 Subject: [PATCH] feat: ability to disable max connection --- comet/api/stream.py | 1 + 1 file changed, 1 insertion(+) diff --git a/comet/api/stream.py b/comet/api/stream.py index b546314..cdf8450 100644 --- a/comet/api/stream.py +++ b/comet/api/stream.py @@ -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")