mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-21 15:57:12 +00:00
Fix cert pinning on macOS
This commit is contained in:
1 parent
d1640e3bb8
commit
8be73142f8
1 file changed
+5
@@ -423,6 +423,11 @@ NvHTTP::openConnection(QUrl baseUrl,
|
||||
QList<QSslError> expectedSslErrors;
|
||||
expectedSslErrors.append(QSslError(QSslError::HostNameMismatch, m_ServerCert));
|
||||
expectedSslErrors.append(QSslError(QSslError::SelfSignedCertificate, m_ServerCert));
|
||||
|
||||
// The SecureTransport backend for Qt TLS on macOS throws CertificateUntrusted
|
||||
// instead of SelfSignedCertificate, so we will need to allow that error too.
|
||||
expectedSslErrors.append(QSslError(QSslError::CertificateUntrusted, m_ServerCert));
|
||||
|
||||
reply->ignoreSslErrors(expectedSslErrors);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user