TorManager: fix tor connection issue after crash

This commit is contained in:
tobtoht
2023-11-25 19:39:13 +01:00
parent a09b15f79e
commit b75ec4381a
4 changed files with 12 additions and 6 deletions
+1 -1
View File
@@ -230,7 +230,7 @@ void Nodes::connectToNode(const FeatherNode &node) {
QString proxyAddress;
if (useSocks5Proxy(node)) {
if (conf()->get(Config::proxy).toInt() == Config::Proxy::Tor && !torManager()->isLocalTor()) {
if (conf()->get(Config::proxy).toInt() == Config::Proxy::Tor && (!torManager()->isLocalTor() || torManager()->isAlreadyRunning())) {
proxyAddress = QString("%1:%2").arg(torManager()->featherTorHost, QString::number(torManager()->featherTorPort));
} else {
proxyAddress = QString("%1:%2").arg(conf()->get(Config::socks5Host).toString(),