[FIX] Теперь ServerWrapper работает.

This commit is contained in:
Zaxar163 2019-11-15 14:39:14 +01:00
parent 9881694884
commit 31bd2c4516
No known key found for this signature in database
GPG key ID: 1FE4F2E1F053831B

View file

@ -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;