mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 11:39:11 +03:00
[FIX] Удален legacyAddress/legacyPort
This commit is contained in:
parent
96c2aac849
commit
ddb4bc9728
1 changed files with 1 additions and 24 deletions
|
@ -99,11 +99,6 @@ public void reload() throws Exception {
|
|||
|
||||
public static final class Config {
|
||||
private transient LaunchServer server = null;
|
||||
public int legacyPort;
|
||||
|
||||
private String legacyAddress;
|
||||
|
||||
private String legacyBindAddress;
|
||||
|
||||
public String projectName;
|
||||
|
||||
|
@ -169,15 +164,6 @@ public AuthProviderPair getAuthProviderPair() {
|
|||
|
||||
public String startScript;
|
||||
|
||||
public String getLegacyAddress() {
|
||||
return legacyAddress;
|
||||
}
|
||||
|
||||
|
||||
public String getLegacyBindAddress() {
|
||||
return legacyBindAddress;
|
||||
}
|
||||
|
||||
public void setProjectName(String projectName) {
|
||||
this.projectName = projectName;
|
||||
}
|
||||
|
@ -191,13 +177,7 @@ public void setEnv(LauncherConfig.LauncherEnvironment env) {
|
|||
}
|
||||
|
||||
|
||||
public void setLegacyAddress(String legacyAddress) {
|
||||
this.legacyAddress = legacyAddress;
|
||||
}
|
||||
|
||||
|
||||
public void verify() {
|
||||
VerifyHelper.verify(getLegacyAddress(), VerifyHelper.NOT_EMPTY, "LaunchServer address can't be empty");
|
||||
if (auth == null || auth[0] == null) {
|
||||
throw new NullPointerException("AuthHandler must not be null");
|
||||
}
|
||||
|
@ -736,8 +716,6 @@ private void generateConfigIfNotExists(boolean testEnv) throws IOException {
|
|||
newConfig.protectHandler = new StdProtectHandler();
|
||||
if (testEnv) newConfig.permissionsHandler = new DefaultPermissionsHandler();
|
||||
else newConfig.permissionsHandler = new JsonFilePermissionsHandler();
|
||||
newConfig.legacyPort = 7240;
|
||||
newConfig.legacyBindAddress = "0.0.0.0";
|
||||
newConfig.binaryName = "Launcher";
|
||||
newConfig.whitelistRejectString = "Вас нет в белом списке";
|
||||
|
||||
|
@ -788,7 +766,6 @@ private void generateConfigIfNotExists(boolean testEnv) throws IOException {
|
|||
newConfig.projectName = "MineCraft";
|
||||
}
|
||||
|
||||
newConfig.legacyAddress = address;
|
||||
newConfig.netty.address = "ws://" + address + ":9274/api";
|
||||
newConfig.netty.downloadURL = "http://" + address + ":9274/%dirname%/";
|
||||
newConfig.netty.launcherURL = "http://" + address + ":9274/Launcher.jar";
|
||||
|
|
Loading…
Reference in a new issue