Increased DNS client timeout from 1 second to 3. Added YGGv6 address to bootstrap peers. Incremented version.
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "alfis"
|
name = "alfis"
|
||||||
version = "0.4.1"
|
version = "0.4.2"
|
||||||
authors = ["Revertron <alfis@revertron.com>"]
|
authors = ["Revertron <alfis@revertron.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@ key_file = "default.key"
|
|||||||
# Network settings
|
# Network settings
|
||||||
[net]
|
[net]
|
||||||
# All bootstap nodes
|
# All bootstap nodes
|
||||||
peers = ["test-ip4.alfis.name:4244", "test-ip6.alfis.name:4244"]
|
peers = ["test-ip4.alfis.name:4244", "test-ip6.alfis.name:4244", "[300:1251::1]: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
|
||||||
|
|||||||
+1
-1
@@ -308,7 +308,7 @@ impl DnsClient for DnsNetworkClient {
|
|||||||
Builder::new()
|
Builder::new()
|
||||||
.name("DnsNetworkClient-timeout-thread".into())
|
.name("DnsNetworkClient-timeout-thread".into())
|
||||||
.spawn(move || {
|
.spawn(move || {
|
||||||
let timeout = Duration::seconds(1);
|
let timeout = Duration::seconds(3);
|
||||||
loop {
|
loop {
|
||||||
if let Ok(mut pending_queries) = pending_queries_lock.lock() {
|
if let Ok(mut pending_queries) = pending_queries_lock.lock() {
|
||||||
let mut finished_queries = Vec::new();
|
let mut finished_queries = Vec::new();
|
||||||
|
|||||||
Reference in New Issue
Block a user