fix: fix the proxyURL is empty, not using the default HTTP client configuration && the AWS calling side did not apply the relay timeout.

This commit is contained in:
Seefs committed 2026-01-05 17:56:24 +08:00
1 parent 43f5433e6a
commit 0ef2804757
2 files changed
+25 -3

No files matched your search

+3
View File
@@ -82,6 +82,9 @@ func ResetProxyClientCache() {
// NewProxyHttpClient 创建支持代理的 HTTP 客户端
func NewProxyHttpClient(proxyURL string) (*http.Client, error) {
if proxyURL == "" {
if client := GetHttpClient(); client != nil {
return client, nil
}
return http.DefaultClient, nil
}