Skip to content

Commit

Permalink
SMBXLauncher: Try to don't check Internet access via HTTPS
Browse files Browse the repository at this point in the history
Otherwise, the Internet access check fails on Windows builds
  • Loading branch information
Wohlstand committed Apr 7, 2021
1 parent 3b52b30 commit 495fca2
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
#include "../Common/qurlinvalidexception.h"
#include <QEventLoop>

Q_CONSTEXPR const char* const timeoutURLs[] =
static const char* timeoutURLs[] =
{
"https://codehaus.moe",
"https://codehaus.wohlsoft.ru",
"http://codehaus.moe",
"http://codehaus.wohlsoft.ru",
"http://google.com",
Expand Down Expand Up @@ -57,9 +55,9 @@ QByteArray NetworkUtils::getString(const QUrl &url, int timeout)

bool NetworkUtils::checkInternetConnection(int timeout)
{
const char * const* it = timeoutURLs;
const char ** it = timeoutURLs;

while(*it != NULL)
while(*it != nullptr)
{
const char *s = *it;
try
Expand Down

0 comments on commit 495fca2

Please sign in to comment.