]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
Utils: portOpen: remove QIODeviceBase::ReadOnly for qt5 compat
authortobtoht <tob@featherwallet.org>
Fri, 21 Apr 2023 16:13:53 +0000 (18:13 +0200)
committertobtoht <tob@featherwallet.org>
Fri, 21 Apr 2023 16:13:53 +0000 (18:13 +0200)
src/utils/Utils.cpp

index f012c00c2d4e9ede38f69f80b6b28595079513f8..75b5280d017b2853b909b94182d7f11b876b703f 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, QIODeviceBase::ReadOnly);
+    socket.connectToHost(hostname, port);
     bool res = socket.waitForConnected(1000);
     qDebug() << QString("Port " + (res ? QString("Open") : QString("Closed")));
     if (!res) {