From 7185630ba12c42104ee7107c207e9401f8f5137f Mon Sep 17 00:00:00 2001 From: win Date: Sun, 22 Mar 2026 03:19:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Node.js=20TLS=20=E4=BB=A3=E7=90=86?= =?UTF-8?q?=E4=BB=85=E6=8B=A6=E6=88=AA=20api.anthropic.com=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20Sora=20404?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/internal/repository/http_upstream.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/internal/repository/http_upstream.go b/backend/internal/repository/http_upstream.go index 509e1492..9daf80be 100644 --- a/backend/internal/repository/http_upstream.go +++ b/backend/internal/repository/http_upstream.go @@ -175,8 +175,9 @@ func (s *httpUpstreamService) DoWithTLS(req *http.Request, proxyURL string, acco return s.Do(req, proxyURL, accountID, accountConcurrency) } - // 优先使用 Node.js TLS 代理模式 - if s.isNodeTLSProxyEnabled() && req != nil && req.URL != nil && req.URL.Scheme == "https" { + // 优先使用 Node.js TLS 代理模式(仅 Anthropic API) + // 其他上游(Sora/Bedrock 等)需要 Chrome 指纹,走原有 uTLS 路径 + if s.isNodeTLSProxyEnabled() && req != nil && req.URL != nil && req.URL.Hostname() == "api.anthropic.com" { return s.doViaNodeTLSProxy(req, accountID, accountConcurrency) }