mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 07:11:29 +02:00
Merge pull request #261 from nabijaczleweli/master
Don't pretend to fall off the end of Nodes::useSocks5Proxy()
This commit is contained in:
+3
-4
@@ -479,7 +479,8 @@ bool Nodes::useSocks5Proxy(const FeatherNode &node) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (conf()->get(Config::proxy).toInt() == Config::Proxy::None) {
|
||||
const auto config_proxy = conf()->get(Config::proxy).toInt();
|
||||
if (config_proxy == Config::Proxy::None) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -492,15 +493,13 @@ bool Nodes::useSocks5Proxy(const FeatherNode &node) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (conf()->get(Config::proxy).toInt() == Config::Proxy::Tor) {
|
||||
if (config_proxy == Config::Proxy::Tor) {
|
||||
// Don't use socks5 proxy if initial sync traffic is excluded.
|
||||
return this->useOnionNodes();
|
||||
}
|
||||
|
||||
if (conf()->get(Config::proxy).toInt() != Config::Proxy::None) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
void Nodes::updateModels() {
|
||||
this->modelCustom->updateNodes(m_customNodes);
|
||||
|
||||
Reference in New Issue
Block a user