From: tobtoht Date: Thu, 20 Apr 2023 20:21:25 +0000 (+0200) Subject: Utils: portOpen: use ReadOnly X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=f27991b69cba2832490fd225da4c44735053cb92;p=gamesguru%2Ffeather.git Utils: portOpen: use ReadOnly --- diff --git a/src/utils/Utils.cpp b/src/utils/Utils.cpp index dce78751..092d3675 100644 --- a/src/utils/Utils.cpp +++ b/src/utils/Utils.cpp @@ -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;