mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-22 19:49:28 +00:00
utils: remove portOpen logging
This commit is contained in:
parent
2aafbd50da
commit
8342777586
1 changed files with 1 additions and 4 deletions
|
@ -295,13 +295,10 @@ bool portOpen(const QString &hostname, quint16 port) { // TODO: this call should
|
||||||
if (config()->get(Config::offlineMode).toBool()) {
|
if (config()->get(Config::offlineMode).toBool()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
qDebug() << QString("Checking for open port on: %1:%2").arg(hostname, QString::number(port));
|
|
||||||
|
|
||||||
QTcpSocket socket;
|
QTcpSocket socket;
|
||||||
socket.connectToHost(hostname, port);
|
socket.connectToHost(hostname, port);
|
||||||
bool res = socket.waitForConnected(600);
|
return socket.waitForConnected(600);
|
||||||
qDebug() << QString("Port " + (res ? QString("Open") : QString("Closed")));
|
|
||||||
return res;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
quint16 getDefaultRpcPort(NetworkType::Type type) {
|
quint16 getDefaultRpcPort(NetworkType::Type type) {
|
||||||
|
|
Loading…
Reference in a new issue