From 66b03c0dff413fce93c7e6497e7fa613a026db03 Mon Sep 17 00:00:00 2001 From: Revertron Date: Sat, 17 Jul 2021 13:16:00 +0200 Subject: [PATCH] Verson increment. Disabled start of DNS server if threads set to zero. --- Cargo.lock | 2 +- Cargo.toml | 2 +- alfis.toml | 4 ++-- src/main.rs | 4 +++- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8b07916..0d10529 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -67,7 +67,7 @@ dependencies = [ [[package]] name = "alfis" -version = "0.6.5" +version = "0.6.6" dependencies = [ "base64", "bincode", diff --git a/Cargo.toml b/Cargo.toml index 5fe90a4..36c4598 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "alfis" -version = "0.6.5" +version = "0.6.6" authors = ["Revertron "] edition = "2018" build = "build.rs" diff --git a/alfis.toml b/alfis.toml index 666c518..267e9de 100644 --- a/alfis.toml +++ b/alfis.toml @@ -8,7 +8,7 @@ check_blocks = 8 # Network settings [net] # 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 listen = "[::]:4244" # 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) listen = "127.0.0.1:53" # How many threads to spawn by DNS server -threads = 20 +threads = 50 # AdGuard DNS servers to filter ads and trackers forwarders = ["94.140.14.14:53", "94.140.15.15:53"] # Cloudflare servers diff --git a/src/main.rs b/src/main.rs index 470f977..5b48cf7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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();