Fixed log
This commit is contained in:
parent
824aec6322
commit
a36f0dbf02
@ -198,13 +198,15 @@ bool LicenseServer::handleServerValidation(shared_ptr<ConnectedClient> &client,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
this->manager->logRequest(remote_license->key(), client->unique_identifier, client->address(), pkt.info().version(), response.valid());
|
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()) {
|
} else {
|
||||||
|
/* shall never happen, by default each server has the default license */
|
||||||
|
response.set_valid(true);
|
||||||
|
}
|
||||||
|
if(pkt.has_memory_valid() && !pkt.memory_valid()) {
|
||||||
response.set_invalid_reason("server memory seems to be invalid");
|
response.set_invalid_reason("server memory seems to be invalid");
|
||||||
response.set_valid(false);
|
response.set_valid(false);
|
||||||
logError(LOG_GENERAL, "Server {} has patched license memory!", client->address());
|
logError(LOG_GENERAL, "Server {} has patched license memory!", client->address());
|
||||||
} else {
|
}
|
||||||
response.set_valid(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(client->protocol.version == 2) {
|
if(client->protocol.version == 2) {
|
||||||
if(response.valid())
|
if(response.valid())
|
||||||
|
Loading…
Reference in New Issue
Block a user