refactor: constants, move kTlsCertificateFileanme to => Settings::defaultValue where used

This commit is contained in:
sithlord48
2025-12-21 23:43:16 -05:00
committed by Nick Bolton
parent 049f8d718a
commit 5c34d0edc5
2 changed files with 1 additions and 2 deletions

View File

@ -22,7 +22,6 @@ const auto kCopyright = //
const auto kCoreBinName = "@CORE_BINARY@";
const auto kTlsCertificateFilename = "@CMAKE_PROJECT_NAME@.pem";
const auto kTlsFingerprintTrustedServersFilename = "trusted-servers";
const auto kTlsFingerprintTrustedClientsFilename = "trusted-clients";

View File

@ -156,7 +156,7 @@ QVariant Settings::defaultValue(const QString &key)
return QRect();
if (key == Security::Certificate)
return QStringLiteral("%1/%2").arg(Settings::tlsDir(), kTlsCertificateFilename);
return QStringLiteral("%1/%2.pem").arg(Settings::tlsDir(), kAppId);
if (key == Security::KeySize)
return 2048;