Fixed server not starting after license expires
This commit is contained in:
@@ -482,7 +482,6 @@ vector<string> config::parseConfig(const std::string& path) {
|
||||
goto license_parsing;
|
||||
}
|
||||
|
||||
/*
|
||||
if(!config::license->isValid()) {
|
||||
if(config::license->data.type == license::LicenseType::INVALID) {
|
||||
errors.emplace_back(strobf("Give license isn't valid!").string());
|
||||
@@ -492,9 +491,9 @@ vector<string> config::parseConfig(const std::string& path) {
|
||||
logErrorFmt(true, LOG_GENERAL, strobf("The given license isn't valid!").string());
|
||||
logErrorFmt(true, LOG_GENERAL, strobf("Falling back to the default license.").string());
|
||||
teaspeak_license = "none";
|
||||
|
||||
goto license_parsing;
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
@@ -320,7 +320,7 @@ void LicenseService::send_license_validate_request() {
|
||||
void LicenseService::handle_message_license_info(const void *buffer, size_t buffer_length) {
|
||||
std::lock_guard rlock{this->request_lock};
|
||||
if(this->request_state_ != request_state::license_validate) {
|
||||
this->handle_check_fail(strobf("finvalid request state for license response packet").string());
|
||||
this->handle_check_fail(strobf("invalid request state for license response packet").string());
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace google::protobuf {
|
||||
|
||||
namespace ts::server::license {
|
||||
struct InstanceLicenseInfo {
|
||||
bool is_old_license{false};
|
||||
std::shared_ptr<::license::License> license{nullptr};
|
||||
std::string web_certificate_revision{};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user