mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-03 09:29:37 +00:00
Utils: portOpen: remove QIODeviceBase::ReadOnly for qt5 compat
This commit is contained in:
parent
2179c073cd
commit
a89d20887f
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));
|
qDebug() << QString("Checking for open port on: %1:%2").arg(hostname, QString::number(port));
|
||||||
|
|
||||||
QTcpSocket socket;
|
QTcpSocket socket;
|
||||||
socket.connectToHost(hostname, port, QIODeviceBase::ReadOnly);
|
socket.connectToHost(hostname, port);
|
||||||
bool res = socket.waitForConnected(1000);
|
bool res = socket.waitForConnected(1000);
|
||||||
qDebug() << QString("Port " + (res ? QString("Open") : QString("Closed")));
|
qDebug() << QString("Port " + (res ? QString("Open") : QString("Closed")));
|
||||||
if (!res) {
|
if (!res) {
|
||||||
|
|
Loading…
Reference in a new issue