mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-07-13 20:21:16 -03:00
fix(download): pass proxy to aria2 for actual file transfers (#1010)
This commit is contained in:
@@ -201,6 +201,13 @@ class Aria2Downloader:
|
|||||||
"auto-file-renaming": "false",
|
"auto-file-renaming": "false",
|
||||||
"file-allocation": "none",
|
"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:
|
if request_headers:
|
||||||
options["header"] = [
|
options["header"] = [
|
||||||
f"{key}: {value}" for key, value in request_headers.items()
|
f"{key}: {value}" for key, value in request_headers.items()
|
||||||
|
|||||||
Reference in New Issue
Block a user