diff --git a/src/lib/net/SecureSocket.cpp b/src/lib/net/SecureSocket.cpp index 95b8ffc56..221da3459 100644 --- a/src/lib/net/SecureSocket.cpp +++ b/src/lib/net/SecureSocket.cpp @@ -468,9 +468,9 @@ int SecureSocket::secureConnect(int socket) LOG_DEBUG2("connecting secure socket"); - // TODO: S1-1766, enable hostname verification. - // the cert will need to be installed in the trusted store on the client. - // we'll probably need to find a way of securely transferring the cert. + // enable hostname verification. + const auto name = Settings::value(Settings::Core::ScreenName).toString().toStdString(); + SSL_set1_host(m_ssl->m_ssl, name.c_str()); int r = SSL_connect(m_ssl->m_ssl); static int retry;