From 3494037d20634b7cefd031b2cfd7c84d9486e246 Mon Sep 17 00:00:00 2001 From: Will Miao Date: Sat, 4 Jul 2026 11:07:18 +0800 Subject: [PATCH] fix(download): pass proxy to aria2 for actual file transfers (#1010) --- py/services/aria2_downloader.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/py/services/aria2_downloader.py b/py/services/aria2_downloader.py index 6a7eb66e..5b3aae63 100644 --- a/py/services/aria2_downloader.py +++ b/py/services/aria2_downloader.py @@ -201,6 +201,13 @@ class Aria2Downloader: "auto-file-renaming": "false", "file-allocation": "none", } + + # Pass proxy to aria2 so the actual file transfer goes through the + # same proxy used by the aiohttp-based URL resolution step above. + downloader = await get_downloader() + if downloader.proxy_url: + options["all-proxy"] = downloader.proxy_url + if request_headers: options["header"] = [ f"{key}: {value}" for key, value in request_headers.items()