refactor: use Settings for secure connect certificate path

This commit is contained in:
sithlord48 2025-03-19 11:28:04 -04:00 committed by Nick Bolton
parent b1b8720781
commit ffbe2cf885

View file

@ -478,8 +478,7 @@ int SecureSocket::secureAccept(int socket)
int SecureSocket::secureConnect(int socket) int SecureSocket::secureConnect(int socket)
{ {
std::string certDir = std::string certDir = Settings::value(Settings::Security::Certificate).toString().toStdString();
deskflow::string::sprintf("%s/%s", Settings::tlsDir().toStdString().c_str(), kTlsCertificateFilename);
if (!loadCertificates(certDir)) { if (!loadCertificates(certDir)) {
LOG((CLOG_ERR "could not load client certificates")); LOG((CLOG_ERR "could not load client certificates"));