]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
utils: remove portOpen logging
authortobtoht <tob@featherwallet.org>
Wed, 24 May 2023 12:57:29 +0000 (14:57 +0200)
committertobtoht <tob@featherwallet.org>
Wed, 24 May 2023 12:57:29 +0000 (14:57 +0200)
src/utils/Utils.cpp

index dce7875157aa721e89fdeebd600f2d60544a38b9..53c670a60f2fe6fbea446e6282c999c7d3481bd6 100644 (file)
@@ -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) {