add key serialization
This commit is contained in:
parent
be0ab15153
commit
b14e539464
5 changed files with 117 additions and 13 deletions
|
@ -464,7 +464,7 @@ public final class Server implements IThreadListener {
|
|||
long wtime = this.loadServerConfig();
|
||||
if(this.keyPair == null) {
|
||||
Log.SYSTEM.info("Generiere neues Schlüsselpaar");
|
||||
this.keyPair = EncryptUtil.generateKeyPair();
|
||||
this.keyPair = EncryptUtil.createKeypair();
|
||||
}
|
||||
// if(dtime == -1L) // {
|
||||
// dtime = World.START_TIME;
|
||||
|
@ -499,7 +499,7 @@ public final class Server implements IThreadListener {
|
|||
}
|
||||
else {
|
||||
Log.SYSTEM.info("Generiere temporäres Schlüsselpaar");
|
||||
this.keyPair = EncryptUtil.generateKeyPair();
|
||||
this.keyPair = EncryptUtil.createKeypair();
|
||||
Config.clear();
|
||||
UniverseRegistry.clear();
|
||||
Config.set("daylightCycle", "false", false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue