dbhub: Don't tolerate host name mismatch errors

These were only accepted for debug purposes and shouldn't occur in an
actual installation.
This commit is contained in:
Martin Kleusberg
2017-08-13 13:45:59 +02:00
parent 17cf3ad7d9
commit 0da9e1c3e0

View File

@@ -199,11 +199,10 @@ void RemoteDatabase::gotError(QNetworkReply* reply, const QList<QSslError>& erro
delete reinterpret_cast<const QFile*>(reply->property("file").value<void*>());
// Are there any errors in here that aren't about self-signed certificates and non-matching hostnames?
// TODO What about the hostname mismatch? Can we remove that from the list of ignored errors later?
bool serious_errors = false;
foreach(const QSslError& error, errors)
{
if(error.error() != QSslError::SelfSignedCertificate && error.error() != QSslError::HostNameMismatch)
if(error.error() != QSslError::SelfSignedCertificate)
{
serious_errors = true;
break;