Skip to content

Commit

Permalink
Ignore SSL errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Kebekus committed Oct 15, 2021
1 parent 176f56d commit 1dfd11b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,17 @@ auto main(int argc, char *argv[]) -> int
}
#endif

// Ignore SSL errors
QObject::connect(Global::networkAccessManager(), &QNetworkAccessManager::sslErrors,
[](QNetworkReply *reply, const QList<QSslError> &errors) {
foreach(auto error, errors)
qWarning() << "A" << error.errorString();
if (reply != nullptr) {
reply->ignoreSslErrors();
}
});


// Create mobile platform adaptor. We do this before creating the application engine because this also asks for permissions
if (positionalArguments.length() == 1) {
Global::mobileAdaptor()->processFileOpenRequest(positionalArguments[0]);
Expand Down

0 comments on commit 1dfd11b

Please sign in to comment.