@ -136,25 +136,25 @@ public class LoginServerMsgHandler implements NetMsgHandler {
@@ -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