if(nettype == "testnet" && networkType != NetworkType::TESTNET)
continue;
- if(type == "clearnet" && (TailsOS::detect() || WhonixOS::detect() || Utils::isTorsocks()))
- continue;
-
FeatherNode node{obj.value("address").toString(),
obj.value("height").toInt(),
obj.value("target_height").toInt(),
if (m_connection.isOnion())
return;
- // Don't reconnect on Tails or Whonix (all traffic is already routed through Tor)
- if (TailsOS::detect() || WhonixOS::detect())
- return;
-
this->autoConnect(true);
}
}
bool Nodes::useOnionNodes() {
- if (TailsOS::detect() || WhonixOS::detect()) {
- return true;
- }
auto privacyLevel = config()->get(Config::torPrivacyLevel).toInt();
if (privacyLevel == Config::allTor) {
return true;
return false;
}
+ if (TailsOS::detect() || WhonixOS::detect()) {
+ return true;
+ }
+
return this->useOnionNodes();
}