From c24f8fc85b776e1cdb86df90d81cc0681d3c75be Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 15 Sep 2023 14:23:34 -0400 Subject: [PATCH] Login check modified for testing. --- .../server/login/LoginServerMsgHandler.java | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/engine/server/login/LoginServerMsgHandler.java b/src/engine/server/login/LoginServerMsgHandler.java index dff76ce7..98d0deb1 100644 --- a/src/engine/server/login/LoginServerMsgHandler.java +++ b/src/engine/server/login/LoginServerMsgHandler.java @@ -136,25 +136,25 @@ public class LoginServerMsgHandler implements NetMsgHandler { cMajorVer = vim.getMajorVersion(); cMinorVer = vim.getMinorVersion(); - if (!cMajorVer.equals(this.server.getDefaultVersionInfo().getMajorVersion())) { - this.KickToLogin(MBServerStatics.LOGINERROR_INCORRECT_CLIENT_VERSION, "Major Version Failure: " + cMajorVer, cc); - return; - } + // if (!cMajorVer.equals(this.server.getDefaultVersionInfo().getMajorVersion())) { + // this.KickToLogin(MBServerStatics.LOGINERROR_INCORRECT_CLIENT_VERSION, "Major Version Failure: " + cMajorVer, cc); + // return; + // } /* if (!cMinorVer.equals(this.server.getDefaultVersionInfo().getMinorVersion())) { this.KickToLogin(MBServerStatics.LOGINERROR_INCORRECT_CLIENT_VERSION, "Minor Version Failure: " + cMinorVer, cc); return; } */ - if (cMinorVer == null) { - this.KickToLogin(MBServerStatics.LOGINERROR_INCORRECT_CLIENT_VERSION, "Minor Version Failure: ", cc); - return; - } + // if (cMinorVer == null) { + // this.KickToLogin(MBServerStatics.LOGINERROR_INCORRECT_CLIENT_VERSION, "Minor Version Failure: ", cc); + // return; + // } - if (cMinorVer.length() < 8 || cMinorVer.length() > 16) { - this.KickToLogin(MBServerStatics.LOGINERROR_INCORRECT_CLIENT_VERSION, "Minor Version Failure: ", cc); - return; - } + // if (cMinorVer.length() < 8 || cMinorVer.length() > 16) { + // this.KickToLogin(MBServerStatics.LOGINERROR_INCORRECT_CLIENT_VERSION, "Minor Version Failure: ", cc); + // return; + // } // set MachineID for this connection