diff --git a/easytier/src/common/stun.rs b/easytier/src/common/stun.rs index fedf404..86b957e 100644 --- a/easytier/src/common/stun.rs +++ b/easytier/src/common/stun.rs @@ -56,6 +56,8 @@ impl HostResolverIter { self.ips = ips .filter(|x| x.is_ipv4()) .choose_multiple(&mut rand::thread_rng(), self.max_ip_per_domain as usize); + + if self.ips.is_empty() {return self.next().await;} } Err(e) => { tracing::warn!(?host, ?e, "lookup host for stun failed");