diff --git a/core/huya/wss_client.py b/core/huya/wss_client.py index 88673be..929c622 100644 --- a/core/huya/wss_client.py +++ b/core/huya/wss_client.py @@ -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, )