File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/modules/redisclient/transporters Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ bool RedisClient::DefaultTransporter::connectToHost()
5959 return false ;
6060 }
6161
62- socket->setCaCertificates (trustedCas);
62+ socket->addCaCertificates (trustedCas);
6363
6464 QString privateKey = conf.sslPrivateKeyPath ();
6565 if (!privateKey.isEmpty ()) {
@@ -176,8 +176,10 @@ void RedisClient::DefaultTransporter::reconnect()
176176void RedisClient::DefaultTransporter::sslError (const QList<QSslError> errors)
177177{
178178 m_errorOccurred = true ;
179- QSslError first = errors.at (0 );
180- emit errorOccurred (QString (" SSL error: %1" ).arg (first.errorString ()));
179+
180+ for (QSslError err : errors) {
181+ emit errorOccurred (QString (" SSL error: %1" ).arg (err.errorString ()));
182+ }
181183}
182184
183185void RedisClient::DefaultTransporter::encrypted ()
You can’t perform that action at this time.
0 commit comments