diff --git a/app/backend/autoupdatechecker.cpp b/app/backend/autoupdatechecker.cpp index f3a97027..ef713496 100644 --- a/app/backend/autoupdatechecker.cpp +++ b/app/backend/autoupdatechecker.cpp @@ -29,8 +29,10 @@ AutoUpdateChecker::AutoUpdateChecker(QObject *parent) : void AutoUpdateChecker::start() { #if defined(Q_OS_WIN32) || defined(Q_OS_DARWIN) || defined(STEAM_LINK) // Only run update checker on platforms without auto-update +#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) // HACK: Set network accessibility to work around QTBUG-80947 m_Nam.setNetworkAccessible(QNetworkAccessManager::Accessible); +#endif // We'll get a callback when this is finished QUrl url("https://moonlight-stream.org/updates/qt.json"); diff --git a/app/backend/nvhttp.cpp b/app/backend/nvhttp.cpp index 60d103df..a9eee4c4 100644 --- a/app/backend/nvhttp.cpp +++ b/app/backend/nvhttp.cpp @@ -454,8 +454,10 @@ NvHTTP::openConnection(QUrl baseUrl, // Add our client certificate request.setSslConfiguration(IdentityManager::get()->getSslConfig()); - // HACK: Set reachability to work around QTBUG-80947 +#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) + // HACK: Set network accessibility to work around QTBUG-80947 m_Nam.setNetworkAccessible(QNetworkAccessManager::Accessible); +#endif QNetworkReply* reply = m_Nam.get(request);