WSS连接不信任环境代理避免SOCKS劫持
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user