From c14404a7c1c16032023804b6045f0a369acc7681 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 29 Apr 2020 20:20:17 -0700 Subject: [PATCH] Restore the QTBUG-80947 hack for support for direct connections without a router --- app/backend/nvhttp.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/backend/nvhttp.cpp b/app/backend/nvhttp.cpp index 43c720a0..becc36cc 100644 --- a/app/backend/nvhttp.cpp +++ b/app/backend/nvhttp.cpp @@ -440,9 +440,14 @@ NvHTTP::openConnection(QUrl baseUrl, // Add our client certificate request.setSslConfiguration(IdentityManager::get()->getSslConfig()); -#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) && QT_VERSION < QT_VERSION_CHECK(5, 14, 2) && !defined(QT_NO_BEARERMANAGEMENT) - // HACK: Set network accessibility to work around QTBUG-80947 +#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) && !defined(QT_NO_BEARERMANAGEMENT) + // HACK: Set network accessibility to work around QTBUG-80947. + // Even though it was fixed in 5.14.2, it still breaks for users attempting to + // directly connect their computers without a router using APIPA. + QT_WARNING_PUSH + QT_WARNING_DISABLE_DEPRECATED m_Nam.setNetworkAccessible(QNetworkAccessManager::Accessible); + QT_WARNING_POP #endif QNetworkReply* reply = m_Nam.get(request);