mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-18 23:58:59 +02:00
Tor: temp port connection logging
This commit is contained in:
+4
-1
@@ -295,10 +295,13 @@ 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);
|
||||
return socket.waitForConnected(600);
|
||||
bool res = socket.waitForConnected(600);
|
||||
qDebug() << QString("Port " + (res ? QString("Open") : QString("Closed")));
|
||||
return res;
|
||||
}
|
||||
|
||||
quint16 getDefaultRpcPort(NetworkType::Type type) {
|
||||
|
||||
Reference in New Issue
Block a user