License server memory validation

This commit is contained in:
WolverinDEV
2020-04-03 19:07:03 +02:00
parent 240052da3a
commit 8e4d52ddd2
9 changed files with 28 additions and 7 deletions
+4
View File
@@ -198,6 +198,10 @@ bool LicenseServer::handleServerValidation(shared_ptr<ConnectedClient> &client,
}
}
this->manager->logRequest(remote_license->key(), client->unique_identifier, client->address(), pkt.info().version(), response.valid());
} else if(pkt.has_memory_valid() && !pkt.memory_valid()) {
response.set_invalid_reason("server memory seems to be invalid");
response.set_valid(false);
logError(LOG_GENERAL, "Server {} has patched license memory!", client->address());
} else {
response.set_valid(true);
}