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
Generated
+1 -1
View File
@@ -67,7 +67,7 @@ dependencies = [
[[package]] [[package]]
name = "alfis" name = "alfis"
version = "0.6.5" version = "0.6.6"
dependencies = [ dependencies = [
"base64", "base64",
"bincode", "bincode",
+1 -1
View File
@@ -1,6 +1,6 @@
[package] [package]
name = "alfis" name = "alfis"
version = "0.6.5" version = "0.6.6"
authors = ["Revertron <alfis@revertron.com>"] authors = ["Revertron <alfis@revertron.com>"]
edition = "2018" edition = "2018"
build = "build.rs" build = "build.rs"
+2 -2
View File
@@ -8,7 +8,7 @@ check_blocks = 8
# Network settings # Network settings
[net] [net]
# All bootstap nodes # All bootstap nodes
peers = ["test-ip4.alfis.name:4244", "test-ip6.alfis.name:4244"] peers = ["peer-v4.alfis.name:4244", "peer-v6.alfis.name:4244", "peer-ygg.alfis.name:4244"]
# Your node will listen on that address for other nodes to connect # Your node will listen on that address for other nodes to connect
listen = "[::]:4244" listen = "[::]:4244"
# Set true if you want your IP to participate in peer-exchange, or false otherwise # Set true if you want your IP to participate in peer-exchange, or false otherwise
@@ -21,7 +21,7 @@ yggdrasil_only = false
# Your DNS resolver will be listening on this address and port (Usual port is 53) # Your DNS resolver will be listening on this address and port (Usual port is 53)
listen = "127.0.0.1:53" listen = "127.0.0.1:53"
# How many threads to spawn by DNS server # How many threads to spawn by DNS server
threads = 20 threads = 50
# AdGuard DNS servers to filter ads and trackers # AdGuard DNS servers to filter ads and trackers
forwarders = ["94.140.14.14:53", "94.140.15.15:53"] forwarders = ["94.140.14.14:53", "94.140.15.15:53"]
# Cloudflare servers # Cloudflare servers
+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)); let mut miner_obj = Miner::new(Arc::clone(&context));
miner_obj.start_mining_thread(); miner_obj.start_mining_thread();