From c3cbbd497f39e5582557bf2d408506028c6a274e Mon Sep 17 00:00:00 2001 From: octopus_yan Date: Sun, 8 Sep 2024 21:53:27 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E6=B8=85=E7=90=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cn/octopusyan/alistgui/manager/http/HttpConfig.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/cn/octopusyan/alistgui/manager/http/HttpConfig.java b/src/main/java/cn/octopusyan/alistgui/manager/http/HttpConfig.java index f460239..2de1f81 100644 --- a/src/main/java/cn/octopusyan/alistgui/manager/http/HttpConfig.java +++ b/src/main/java/cn/octopusyan/alistgui/manager/http/HttpConfig.java @@ -15,7 +15,6 @@ import java.net.http.HttpClient; import java.security.KeyManagementException; import java.security.NoSuchAlgorithmException; import java.security.SecureRandom; -import java.security.cert.CertificateException; import java.security.cert.X509Certificate; import java.util.concurrent.Executor; @@ -27,10 +26,12 @@ import java.util.concurrent.Executor; @Data public class HttpConfig { private static final Logger logger = LoggerFactory.getLogger(HttpConfig.class); + static { // 使用系统默认代理 System.setProperty("java.net.useSystemProxies", "true"); } + /** * http版本 */