maybe it works now?
This commit is contained in:
parent
b8d02b2077
commit
b9e36d9f8c
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user