允许使用系统属性禁用系统代理 (#2921)
This commit is contained in:
@@ -55,8 +55,8 @@ public final class Main {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
System.setProperty("java.net.useSystemProxies", "true");
|
System.getProperties().putIfAbsent("java.net.useSystemProxies", "true");
|
||||||
System.setProperty("javafx.autoproxy.disable", "true");
|
System.getProperties().putIfAbsent("javafx.autoproxy.disable", "true");
|
||||||
System.getProperties().putIfAbsent("http.agent", "HMCL/" + Metadata.VERSION);
|
System.getProperties().putIfAbsent("http.agent", "HMCL/" + Metadata.VERSION);
|
||||||
|
|
||||||
checkDirectoryPath();
|
checkDirectoryPath();
|
||||||
|
|||||||
Reference in New Issue
Block a user