mirror of
https://github.com/pradt2/always-online-stun.git
synced 2025-09-26 19:41:34 +08:00
ping reference STUN only once
This commit is contained in:
@@ -36,7 +36,7 @@ async fn test_udp_servers() -> io::Result<()> {
|
||||
.parse()
|
||||
.expect("IS_BEHIND_NAT must be true or false");
|
||||
|
||||
let ref_socket_addrs = tokio::net::lookup_host("stun.bethesda.net:3478").await;
|
||||
let ref_socket_addrs = tokio::net::lookup_host("stun.nextcloud.com:3478").await;
|
||||
if ref_socket_addrs.is_err() {
|
||||
error!("Reference STUN error: host not found!");
|
||||
}
|
||||
@@ -131,7 +131,7 @@ async fn test_tcp_servers() -> io::Result<()> {
|
||||
.parse()
|
||||
.expect("IS_BEHIND_NAT must be true or false");
|
||||
|
||||
let ref_socket_addrs = tokio::net::lookup_host("stun.bethesda.net:3478").await;
|
||||
let ref_socket_addrs = tokio::net::lookup_host("stun.nextcloud.com:3478").await;
|
||||
if ref_socket_addrs.is_err() {
|
||||
error!("Reference STUN error: host not found!");
|
||||
}
|
||||
|
Reference in New Issue
Block a user