]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
Utils: portOpen: use ReadOnly
authortobtoht <tob@featherwallet.org>
Thu, 20 Apr 2023 20:21:25 +0000 (22:21 +0200)
committertobtoht <tob@featherwallet.org>
Thu, 20 Apr 2023 20:21:25 +0000 (22:21 +0200)
src/utils/Utils.cpp

index dce7875157aa721e89fdeebd600f2d60544a38b9..092d367572631094e6f8fde9453d25925e3a4175 100644 (file)
@@ -298,7 +298,7 @@ bool portOpen(const QString &hostname, quint16 port) { // TODO: this call should
     qDebug() << QString("Checking for open port on: %1:%2").arg(hostname, QString::number(port));
 
     QTcpSocket socket;
-    socket.connectToHost(hostname, port);
+    socket.connectToHost(hostname, port, QIODeviceBase::ReadOnly);
     bool res = socket.waitForConnected(600);
     qDebug() << QString("Port " + (res ? QString("Open") : QString("Closed")));
     return res;