refactor: use Settings for secure connect certificate path
This commit is contained in:
parent
b1b8720781
commit
ffbe2cf885
1 changed files with 1 additions and 2 deletions
|
|
@ -478,8 +478,7 @@ int SecureSocket::secureAccept(int socket)
|
|||
int SecureSocket::secureConnect(int socket)
|
||||
{
|
||||
|
||||
std::string certDir =
|
||||
deskflow::string::sprintf("%s/%s", Settings::tlsDir().toStdString().c_str(), kTlsCertificateFilename);
|
||||
std::string certDir = Settings::value(Settings::Security::Certificate).toString().toStdString();
|
||||
|
||||
if (!loadCertificates(certDir)) {
|
||||
LOG((CLOG_ERR "could not load client certificates"));
|
||||
|
|
|
|||
Loading…
Reference in a new issue