From 61ce0c96723f57ec0d8345ef7be3385a9b0e1023 Mon Sep 17 00:00:00 2001 From: yml2213 Date: Tue, 1 Sep 2026 20:30:01 +0800 Subject: [PATCH] =?UTF-8?q?WSS=E8=BF=9E=E6=8E=A5=E4=B8=8D=E4=BF=A1?= =?UTF-8?q?=E4=BB=BB=E7=8E=AF=E5=A2=83=E4=BB=A3=E7=90=86=E9=81=BF=E5=85=8D?= =?UTF-8?q?SOCKS=E5=8A=AB=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/huya/wss_client.py | 3 +++ 1 file changed, 3 insertions(+) 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, )