Verson increment. Disabled start of DNS server if threads set to zero.

This commit is contained in:
Revertron
2021-07-17 13:16:00 +02:00
parent 14adef4355
commit 66b03c0dff
4 changed files with 7 additions and 5 deletions
+3 -1
View File
@@ -185,7 +185,9 @@ fn main() {
}
}
dns_utils::start_dns_server(&context, &settings_copy);
if settings_copy.dns.threads > 0 {
dns_utils::start_dns_server(&context, &settings_copy);
}
let mut miner_obj = Miner::new(Arc::clone(&context));
miner_obj.start_mining_thread();