From 9dbeffc8882f56269dfa82a02aa645189b011a49 Mon Sep 17 00:00:00 2001 From: Adam Treat Date: Mon, 24 Apr 2023 00:03:01 -0400 Subject: [PATCH] Ssl handshake experiment. --- download.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/download.cpp b/download.cpp index 272ca1d9..afe141ac 100644 --- a/download.cpp +++ b/download.cpp @@ -68,6 +68,9 @@ void Download::updateModelList() { QUrl jsonUrl("http://gpt4all.io/models/models.json"); QNetworkRequest request(jsonUrl); + QSslConfiguration conf = request.sslConfiguration(); + conf.setPeerVerifyMode(QSslSocket::VerifyNone); + request.setSslConfiguration(conf); QNetworkReply *jsonReply = m_networkManager.get(request); connect(jsonReply, &QNetworkReply::finished, this, &Download::handleJsonDownloadFinished); }