mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-02-17 03:02:35 +01:00
add option to force encryption
This commit is contained in:
parent
6715e48aa5
commit
c14746a05f
@ -57,7 +57,7 @@ public class SecureLoginEvent extends MessageHandler {
|
|||||||
if (!Emulator.isReady)
|
if (!Emulator.isReady)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (Emulator.getCrypto().isEnabled() && !this.client.isHandshakeFinished()) {
|
if (Emulator.getConfig().getBoolean("encryption.forced", false) && Emulator.getCrypto().isEnabled() && !this.client.isHandshakeFinished()) {
|
||||||
Emulator.getGameServer().getGameClientManager().disposeClient(this.client);
|
Emulator.getGameServer().getGameClientManager().disposeClient(this.client);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user