fix: Always perform SSL peer verification

As the datastore now has real (no self-signed) TLS certificates, the host
verification should not be disabled by default. When testing locally,
one could use non-TLS connections.
This commit is contained in:
Lars Toenning
2024-03-10 23:06:54 +01:00
parent d977223fd4
commit c0b0c74c3c
3 changed files with 0 additions and 22 deletions

View File

@@ -81,7 +81,6 @@ namespace BlackCore::Db
QUrl url(m_modelPublishUrl.toQUrl());
if (compress) { url.setQuery(CDatabaseUtils::getCompressedQuery()); }
QNetworkRequest request(url);
CNetworkUtils::ignoreSslVerification(request);
const QByteArray eInfo = extraInfo.toLatin1();
request.setRawHeader(QByteArray("swift-extrainfo"), eInfo);
const int logId = m_writeLog.addPendingUrl(url);
@@ -122,7 +121,6 @@ namespace BlackCore::Db
url.setQuery(query);
QNetworkRequest request(url);
CNetworkUtils::ignoreSslVerification(request);
const int logId = m_writeLog.addPendingUrl(url);
m_pendingAutoPublishReply = sApp->postToNetwork(request, logId, multiPart, { this, &CDatabaseWriter::postedAutoPublishResponse });
m_autoPublishReplyPendingSince = QDateTime::currentMSecsSinceEpoch();