Ssl handshake experiment.

This commit is contained in:
Adam Treat 2023-04-24 00:03:01 -04:00
parent 3c68b01034
commit 73f11a9ce2

View File

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