mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-22 19:49:28 +00:00
Utils: portOpen: use ReadOnly
This commit is contained in:
parent
fea15c2ff0
commit
f27991b69c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue