A lot of updates
This commit is contained in:
@@ -97,17 +97,28 @@ void LicenceRequest::handlePacketLicenseInfo(const std::string& message) {
|
||||
infos.set_queries_online(this->data->queries_online);
|
||||
infos.set_servers_online(this->data->servers_online);
|
||||
infos.set_web_clients_online(this->data->web_clients_online);
|
||||
|
||||
infos.set_web_cert_revision(this->data->web_certificate_revision);
|
||||
this->sendPacket({protocol::PACKET_CLIENT_PROPERTY_ADJUSTMENT, infos});
|
||||
this->state = protocol::PROPERTY_ADJUSTMENT;
|
||||
}
|
||||
|
||||
void LicenceRequest::handlePacketInfoAdjustment(const std::string& message) {
|
||||
ts::proto::license::PropertyUpdateResponse response;
|
||||
ts::proto::license::PropertyUpdateResponse response{};
|
||||
if(!response.ParseFromString(message)) LICENSE_FERR(this, InvalidResponseException, "Could not parse response");
|
||||
|
||||
this->response->properties_valid = response.accepted();
|
||||
this->response->speach_varianz_adjustment = response.speach_varianz_corrector();
|
||||
this->response->speach_reset = response.reset_speach();
|
||||
|
||||
if(response.has_web_certificate() && this->callback_update_certificate) {
|
||||
WebCertificate cert{};
|
||||
cert.revision = response.web_certificate().revision();
|
||||
cert.key = response.web_certificate().key();
|
||||
cert.certificate = response.web_certificate().certificate();
|
||||
this->callback_update_certificate(cert);
|
||||
}
|
||||
|
||||
this->currentFuture->executionSucceed(this->response);
|
||||
this->response = nullptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user