mirror of
https://github.com/deskflow/deskflow.git
synced 2026-07-04 21:04:59 +08:00
refactor: TLSUtil do not check it tls is enabled before regenerating the certificate
fixes #8890
This commit is contained in:
parent
07edccb469
commit
9eede5470c
@ -30,14 +30,6 @@ bool TlsUtility::generateCertificate() const
|
||||
"all clients must trust the new fingerprint"
|
||||
);
|
||||
|
||||
if (!isEnabled()) {
|
||||
qCritical(
|
||||
"unable to generate tls certificate, "
|
||||
"tls is either not available or not enabled"
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
||||
auto length = Settings::value(Settings::Security::KeySize).toInt();
|
||||
|
||||
if (length < 2048) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user