proxy: fix only allow onion services with feather managed daemon

This commit is contained in:
tobtoht
2023-02-13 11:50:06 +01:00
parent 199e085709
commit c11ca77599
3 changed files with 15 additions and 4 deletions
+2 -1
View File
@@ -208,7 +208,8 @@ void Nodes::connectToNode(const FeatherNode &node) {
}
if (config()->get(Config::proxy).toInt() == Config::Proxy::Tor && config()->get(Config::torOnlyAllowOnion).toBool()) {
if (!node.isOnion()) {
if (!node.isOnion() && !node.isLocal()) {
// We only want to connect to .onion nodes, but local nodes get an exception.
return;
}
}