mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-20 16:48:39 +02:00
Utils: portOpen: remove QIODeviceBase::ReadOnly for qt5 compat
This commit is contained in:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user