Fix QSslSocket::ignoreSslErrors compile error with Qt 6

This commit is contained in:
Jonas Kvinge 2020-08-08 19:04:44 +02:00
parent 09c7ff9e8b
commit 6bf325c6f6
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,7 @@ void LocalRedirectServer::incomingConnection(qintptr socket_descriptor) {
emit Finished();
return;
}
ssl_socket->ignoreSslErrors({QSslError::SelfSignedCertificate});
ssl_socket->ignoreSslErrors(QList<QSslError>() << QSslError(QSslError::SelfSignedCertificate));
ssl_socket->setPrivateKey(ssl_key_);
ssl_socket->setLocalCertificate(ssl_certificate_);
ssl_socket->setProtocol(QSsl::TlsV1_2);