utils: remove portOpen logging

This commit is contained in:
tobtoht 2023-05-24 14:57:29 +02:00
parent 2aafbd50da
commit 8342777586
No known key found for this signature in database
GPG key ID: E45B10DD027D2472

View file

@ -295,13 +295,10 @@ bool portOpen(const QString &hostname, quint16 port) { // TODO: this call should
if (config()->get(Config::offlineMode).toBool()) {
return false;
}
qDebug() << QString("Checking for open port on: %1:%2").arg(hostname, QString::number(port));
QTcpSocket socket;
socket.connectToHost(hostname, port);
bool res = socket.waitForConnected(600);
qDebug() << QString("Port " + (res ? QString("Open") : QString("Closed")));
return res;
return socket.waitForConnected(600);
}
quint16 getDefaultRpcPort(NetworkType::Type type) {