aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-03-09 14:00:57 +0100
committerAlex Auvolat <alex@adnab.me>2023-03-09 14:00:57 +0100
commit7c9839f900171d88a4fd4cb6d7c5dc556817aace (patch)
tree504640857794ef8233ffb778b8d6e3a9af5e666f
parentb969c9ada6e55463cabfcf70b30a02835897f59a (diff)
downloadwgautomesh-7c9839f900171d88a4fd4cb6d7c5dc556817aace.tar.gz
wgautomesh-7c9839f900171d88a4fd4cb6d7c5dc556817aace.zip
allow socket broadcast
-rw-r--r--src/main.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 9977bc0..b913068 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -168,6 +168,7 @@ impl Daemon {
fn new(config: Config) -> Result<Self> {
let (our_pubkey, listen_port, _peers) = wg_dump(&config)?;
let socket = UdpSocket::bind(SocketAddr::new("0.0.0.0".parse()?, config.gossip_port))?;
+ socket.set_broadcast(true)?;
Ok(Daemon {
config,
our_pubkey,