1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-29 01:29:55 +01:00

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

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);