mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-06-13 14:09:25 -03:00
fix: support SOCKS proxies for outbound requests
The proxy settings allow selecting a SOCKS proxy type, but the SOCKS URL was passed to aiohttp's per-request `proxy=` argument, which only supports http(s) proxies. With a SOCKS proxy this opens a plain TCP connection to the proxy port and sends an HTTP request; the SOCKS server replies with its handshake bytes (e.g. b"\x05\xff") and aiohttp fails with "Bad status line ... Expected HTTP/, RTSP/ or ICE/". Route SOCKS proxy types through an aiohttp-socks ProxyConnector on the session instead, leaving the `proxy=` kwarg for http(s) proxies only. trust_env now keys off whether an app-level proxy is active. Adds aiohttp-socks to requirements. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
aiohttp
|
||||
aiohttp-socks
|
||||
jinja2
|
||||
safetensors
|
||||
piexif
|
||||
|
||||
Reference in New Issue
Block a user