Hello friends, I am trying to get old clients to receive the message that they have to update the client. Is there a way to do it with the RSA Key? I found the function in the protocollogin but it gives me debug when I connect with the client that does not have the RSA key of the server. Does anyone know how I can do it? Thanks in advance.
original function:
custom function
original function:
C++:
if (!Protocol::RSA_decrypt(msg)) {
std::cout << "[ProtocolLogin::onRecvFirstMessage] RSA Decrypt Failed" << std::endl;
disconnect();
return;
}
custom function
C++:
if (!Protocol::RSA_decrypt(msg)) {
std::cout << "[ProtocolLogin::onRecvFirstMessage] RSA Decrypt Failed" << std::endl;
disconnectClient("Your client version is outdated. Download a new version on our website.", version);
return;
}