mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-04-19 14:33:04 +03:00
[FIX] Теперь ServerWrapper работает.
This commit is contained in:
parent
9881694884
commit
31bd2c4516
1 changed files with 16 additions and 0 deletions
|
@ -42,6 +42,22 @@ public static AutogenConfig getAutogenConfig() {
|
||||||
public final String secureCheckSalt;
|
public final String secureCheckSalt;
|
||||||
public final String passwordEncryptKey;
|
public final String passwordEncryptKey;
|
||||||
|
|
||||||
|
public LauncherConfig(String address, ECPublicKey publicKey, Map<String, byte[]> runtime, String projectName) {
|
||||||
|
this.address = address;
|
||||||
|
this.publicKey = publicKey;
|
||||||
|
this.runtime = Collections.unmodifiableMap(new HashMap<>(runtime));
|
||||||
|
this.projectName = projectName;
|
||||||
|
this.clientPort = 32148;
|
||||||
|
guardType = "no";
|
||||||
|
isWarningMissArchJava = true;
|
||||||
|
isNettyEnabled = false;
|
||||||
|
environment = LauncherEnvironment.STD;
|
||||||
|
secureCheckSalt = null;
|
||||||
|
secureCheckHash = null;
|
||||||
|
passwordEncryptKey = null;
|
||||||
|
trustManager = null;
|
||||||
|
}
|
||||||
|
|
||||||
public LauncherConfig() throws IOException, InvalidKeySpecException {
|
public LauncherConfig() throws IOException, InvalidKeySpecException {
|
||||||
publicKey = SecurityHelper.toPublicECKey(runtimeConfig.key);
|
publicKey = SecurityHelper.toPublicECKey(runtimeConfig.key);
|
||||||
secureCheckHash = config.secureCheckHash;
|
secureCheckHash = config.secureCheckHash;
|
||||||
|
|
Loading…
Reference in a new issue