diff --git a/backend/internal/repository/http_upstream.go b/backend/internal/repository/http_upstream.go index 33e5bbed..ba6bb8fc 100644 --- a/backend/internal/repository/http_upstream.go +++ b/backend/internal/repository/http_upstream.go @@ -191,7 +191,20 @@ func (s *httpUpstreamService) DoWithTLS(req *http.Request, proxyURL string, acco } // 优先使用 Node.js TLS 代理模式 - if s.isNodeTLSProxyEnabled() && s.shouldRouteViaNodeProxy(req) { return s.doViaNodeTLSProxy(req, accountID, accountConcurrency) + if s.isNodeTLSProxyEnabled() { + shouldRoute := s.shouldRouteViaNodeProxy(req) + host := "" + if req != nil && req.URL != nil { + host = req.URL.Hostname() + } + slog.Warn("node_tls_proxy_check_tls_path", + "host", host, + "should_route", shouldRoute, + "tls_fingerprint_enabled", enableTLSFingerprint, + ) + if shouldRoute { + return s.doViaNodeTLSProxy(req, accountID, accountConcurrency) + } } // TLS 指纹已启用,记录调试日志