fix: Node.js TLS 代理仅拦截 api.anthropic.com,修复 Sora 404
This commit is contained in:
parent
f5fdd41aea
commit
4bca447e33
@ -175,8 +175,9 @@ func (s *httpUpstreamService) DoWithTLS(req *http.Request, proxyURL string, acco
|
|||||||
return s.Do(req, proxyURL, accountID, accountConcurrency)
|
return s.Do(req, proxyURL, accountID, accountConcurrency)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 优先使用 Node.js TLS 代理模式
|
// 优先使用 Node.js TLS 代理模式(仅 Anthropic API)
|
||||||
if s.isNodeTLSProxyEnabled() && req != nil && req.URL != nil && req.URL.Scheme == "https" {
|
// 其他上游(Sora/Bedrock 等)需要 Chrome 指纹,走原有 uTLS 路径
|
||||||
|
if s.isNodeTLSProxyEnabled() && req != nil && req.URL != nil && req.URL.Hostname() == "api.anthropic.com" {
|
||||||
return s.doViaNodeTLSProxy(req, accountID, accountConcurrency)
|
return s.doViaNodeTLSProxy(req, accountID, accountConcurrency)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user