maybe it works now?

This commit is contained in:
PoliEcho 2025-08-02 10:34:58 +02:00
parent b8d02b2077
commit b9e36d9f8c

View File

@ -222,12 +222,13 @@ fn main() -> std::io::Result<()> {
"{} packets away!, awiting a bit for NAT mappings to estabilish",
"[LOG]".blue()
);
std::thread::sleep(Duration::from_millis(200));
std::thread::sleep(Duration::from_millis(2000));
for _ in 0..STANDARD_RETRY_MAX {
match net::P2P_query(&mut buf, &peer.sock_addr, &socket, encrypted, key) {
Ok(ip) => {
ips_used[ip.octets()[3] as usize] = true;
peer.private_ip = ip;
break;
}
Err(e) => {
eprintln!(
@ -236,6 +237,8 @@ fn main() -> std::io::Result<()> {
peer.sock_addr,
e
);
std::thread::sleep(Duration::from_millis(2000));
}
}
}
});