[Only registered and activated users can see links. Click Here To Register...]
I changed the value which is now 3125 but it still shows me this error
my code :
I changed the value which is now 3125 but it still shows me this error
my code :
Code:
default:
{
if (loadedAccount.Authority < AuthorityType.SMOD)
{
MaintenanceLogDTO maintenanceLog = DAOFactory.MaintenanceLogDAO.LoadFirst();
if (maintenanceLog != null && maintenanceLog.DateStart < DateTime.Now)
{
_session.SendPacket($"failc {(byte)LoginFailType.Maintenance}");
return;
}
}
int newSessionId = SessionFactory.Instance.GenerateSessionId();
Logger.Debug(string.Format(Language.Instance.GetMessageFromKey("CONNECTION"), user.Name,
newSessionId));
try
{
ipAddress = ipAddress.Substring(6, ipAddress.LastIndexOf(':') - 6);
CommunicationServiceClient.Instance.RegisterAccountLogin(loadedAccount.AccountId,
newSessionId, ipAddress);
}
catch (Exception ex)
{
Logger.Error("General Error SessionId: " + newSessionId, ex);
}
string[] clientData = loginPacket.ClientData.Split('.');
if (clientData.Length < 2)
{
clientData = loginPacket.ClientDataOld.Split('.');
}
bool ignoreUserName = short.TryParse(clientData[3], out short clientVersion)
&& (clientVersion < 3125
|| ConfigurationManager.AppSettings["UseOldCrypto"] == "true");
_session.SendPacket(BuildServersPacket(user.Name, newSessionId, ignoreUserName));
}