Skip to content

Commit 117c24c

Browse files
authored
fix(checker): respect SSL setting when probing qBittorrent (#1014)
Startup probe hardcoded http:// ignoring settings.downloader.ssl, causing 5-minute startup delay when qBittorrent is HTTPS-only or redirects http→https. Now derives the scheme from settings.downloader.ssl.
1 parent e819a77 commit 117c24c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

backend/src/module/checker/checker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@ async def check_downloader() -> bool:
6666
return True
6767

6868
try:
69+
prefix = "https" if settings.downloader.ssl else "http"
6970
url = (
70-
f"http://{settings.downloader.host}"
71+
f"{prefix}://{settings.downloader.host}"
7172
if "://" not in settings.downloader.host
7273
else f"{settings.downloader.host}"
7374
)

0 commit comments

Comments
 (0)