WSS连接不信任环境代理避免SOCKS劫持

This commit is contained in:
yml2213
2026-09-01 20:30:01 +08:00
parent 9f3e3a74ce
commit 61ce0c9672
+3
View File
@@ -259,6 +259,9 @@ class HuyaWssClient:
user_agent_header=BROWSER_UA,
additional_headers=headers,
open_timeout=timeout,
# 不信任环境代理:web 进程可能带 SOCKS 代理变量,
# 会导致 WSS 直连失败(需 python-socks);虎牙国内直连。
proxy=None,
),
timeout=timeout,
)