DaemonManager: enable dns block list in simple mode

Co-authored-by: xiphon <xiphon@protonmail.com>
This commit is contained in:
selsta 2021-01-22 20:50:51 +01:00
parent 3ca5f10fa8
commit 9cf7c7f03c
No known key found for this signature in database
GPG Key ID: 2EA0A99A8B07AE5E
2 changed files with 3 additions and 6 deletions

View File

@ -1938,12 +1938,13 @@ ApplicationWindow {
return;
}
const simpleModeFlags = "--enable-dns-blocklist --out-peers 16";
if (appWindow.daemonRunning) {
appWindow.stopDaemon(function() {
appWindow.startDaemon("")
appWindow.startDaemon(simpleModeFlags)
});
} else {
appWindow.startDaemon("");
appWindow.startDaemon(simpleModeFlags);
}
}

View File

@ -112,10 +112,6 @@ bool DaemonManager::start(const QString &flags, NetworkType::Type nettype, const
arguments << "--no-sync";
}
if (!flags.contains("--out-peers", Qt::CaseSensitive) && bootstrapNodeAddress == "auto") {
arguments << "--out-peers" << "16";
}
arguments << "--check-updates" << "disabled";
// --max-concurrency based on threads available.