Send beacons to the all-nodes link-local multicast group

This commit is contained in:
mirsal 2021-03-31 21:26:36 +00:00
parent eeefc130ed
commit 870c27261c
1 changed files with 1 additions and 0 deletions

View File

@ -39,6 +39,7 @@ async fn peer_discovery_send(pubkey: Arc<String>) {
loop {
println!("Sending packet: {:?}", &msg);
socket.send_to(&buf, "255.255.255.255:8008").await.unwrap();
socket.send_to(&buf, "[FF02::1]:8008").await.unwrap();
task::sleep(std::time::Duration::from_secs(1)).await;
}
}