From: tobtoht Date: Wed, 24 May 2023 12:57:29 +0000 (+0200) Subject: utils: remove portOpen logging X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=834277758634348dec28f26da73c5224929bd7f6;p=gamesguru%2Ffeather.git utils: remove portOpen logging --- diff --git a/src/utils/Utils.cpp b/src/utils/Utils.cpp index dce78751..53c670a6 100644 --- a/src/utils/Utils.cpp +++ b/src/utils/Utils.cpp @@ -295,13 +295,10 @@ bool portOpen(const QString &hostname, quint16 port) { // TODO: this call should if (config()->get(Config::offlineMode).toBool()) { return false; } - qDebug() << QString("Checking for open port on: %1:%2").arg(hostname, QString::number(port)); QTcpSocket socket; socket.connectToHost(hostname, port); - bool res = socket.waitForConnected(600); - qDebug() << QString("Port " + (res ? QString("Open") : QString("Closed"))); - return res; + return socket.waitForConnected(600); } quint16 getDefaultRpcPort(NetworkType::Type type) {