|
|
@ -136,25 +136,25 @@ public class LoginServerMsgHandler implements NetMsgHandler { |
|
|
|
cMajorVer = vim.getMajorVersion(); |
|
|
|
cMajorVer = vim.getMajorVersion(); |
|
|
|
cMinorVer = vim.getMinorVersion(); |
|
|
|
cMinorVer = vim.getMinorVersion(); |
|
|
|
|
|
|
|
|
|
|
|
if (!cMajorVer.equals(this.server.getDefaultVersionInfo().getMajorVersion())) { |
|
|
|
// if (!cMajorVer.equals(this.server.getDefaultVersionInfo().getMajorVersion())) {
|
|
|
|
this.KickToLogin(MBServerStatics.LOGINERROR_INCORRECT_CLIENT_VERSION, "Major Version Failure: " + cMajorVer, cc); |
|
|
|
// this.KickToLogin(MBServerStatics.LOGINERROR_INCORRECT_CLIENT_VERSION, "Major Version Failure: " + cMajorVer, cc);
|
|
|
|
return; |
|
|
|
// return;
|
|
|
|
} |
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
/* if (!cMinorVer.equals(this.server.getDefaultVersionInfo().getMinorVersion())) { |
|
|
|
/* if (!cMinorVer.equals(this.server.getDefaultVersionInfo().getMinorVersion())) { |
|
|
|
this.KickToLogin(MBServerStatics.LOGINERROR_INCORRECT_CLIENT_VERSION, "Minor Version Failure: " + cMinorVer, cc); |
|
|
|
this.KickToLogin(MBServerStatics.LOGINERROR_INCORRECT_CLIENT_VERSION, "Minor Version Failure: " + cMinorVer, cc); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} */ |
|
|
|
} */ |
|
|
|
|
|
|
|
|
|
|
|
if (cMinorVer == null) { |
|
|
|
// if (cMinorVer == null) {
|
|
|
|
this.KickToLogin(MBServerStatics.LOGINERROR_INCORRECT_CLIENT_VERSION, "Minor Version Failure: ", cc); |
|
|
|
// this.KickToLogin(MBServerStatics.LOGINERROR_INCORRECT_CLIENT_VERSION, "Minor Version Failure: ", cc);
|
|
|
|
return; |
|
|
|
// return;
|
|
|
|
} |
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
if (cMinorVer.length() < 8 || cMinorVer.length() > 16) { |
|
|
|
// if (cMinorVer.length() < 8 || cMinorVer.length() > 16) {
|
|
|
|
this.KickToLogin(MBServerStatics.LOGINERROR_INCORRECT_CLIENT_VERSION, "Minor Version Failure: ", cc); |
|
|
|
// this.KickToLogin(MBServerStatics.LOGINERROR_INCORRECT_CLIENT_VERSION, "Minor Version Failure: ", cc);
|
|
|
|
return; |
|
|
|
// return;
|
|
|
|
} |
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
// set MachineID for this connection
|
|
|
|
// set MachineID for this connection
|
|
|
|
|
|
|
|
|
|
|
|