Skip to content

Commit

Permalink
1. Disable info output.
Browse files Browse the repository at this point in the history
2. Extend the DNS resolving inverval to 6 hours.
  • Loading branch information
zhboner committed Jun 6, 2021
1 parent c97782a commit 5a28e8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/relay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub async fn start_relay(configs: Vec<RelayConfig>) {

tokio::spawn(resolver::resolve(remote_addrs, cloned_remote_ips));

resolver::print_ips(&remote_ips);
// resolver::print_ips(&remote_ips);

let mut iter = configs.into_iter().zip(remote_ips);
let mut runners = vec![];
Expand Down
4 changes: 2 additions & 2 deletions src/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ pub async fn resolve(addr_list: Vec<String>, ip_list: Vec<Arc<RwLock<net::IpAddr
let mut w = ip_list[i].write().unwrap();
*w = new_ip;
drop(w);
println!("Resolved {}: {}", addr, new_ip);
// println!("Resolved {}: {}", addr, new_ip);
}
} else {
println!("Cannot resolve address {}", addr);
}
}

sleep(Duration::from_secs(60)).await;
sleep(Duration::from_secs(60 * 60 * 6)).await;
}
}

Expand Down

0 comments on commit 5a28e8d

Please sign in to comment.