From 7ca5744559520c65644d380375d0551944529a18 Mon Sep 17 00:00:00 2001 From: Glavo Date: Tue, 12 Mar 2024 21:44:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=81=E8=AE=B8=E4=BD=BF=E7=94=A8=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E5=B1=9E=E6=80=A7=E7=A6=81=E7=94=A8=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E4=BB=A3=E7=90=86=20(#2921)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HMCL/src/main/java/org/jackhuang/hmcl/Main.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/Main.java b/HMCL/src/main/java/org/jackhuang/hmcl/Main.java index f6961f54c..1dee2d390 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/Main.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/Main.java @@ -55,8 +55,8 @@ public final class Main { } public static void main(String[] args) { - System.setProperty("java.net.useSystemProxies", "true"); - System.setProperty("javafx.autoproxy.disable", "true"); + System.getProperties().putIfAbsent("java.net.useSystemProxies", "true"); + System.getProperties().putIfAbsent("javafx.autoproxy.disable", "true"); System.getProperties().putIfAbsent("http.agent", "HMCL/" + Metadata.VERSION); checkDirectoryPath();