fix: proxy settings not applied to game

This commit is contained in:
huanghongxun
2020-06-16 13:24:43 +08:00
parent fd24fcc0f2
commit 6532dc72db
3 changed files with 30 additions and 24 deletions

View File

@@ -554,8 +554,7 @@ public final class VersionSetting implements Cloneable {
.setPrecalledCommand(getPreLaunchCommand())
.setNoGeneratedJVMArgs(isNoJVMArgs());
if (config().hasProxy()) {
builder.setProxyHost(config().getProxyHost());
builder.setProxyPort(config().getProxyPort());
builder.setProxy(ProxyManager.getProxy());
if (config().hasProxyAuth()) {
builder.setProxyUser(config().getProxyUser());
builder.setProxyPass(config().getProxyPass());