From 7c9839f900171d88a4fd4cb6d7c5dc556817aace Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Thu, 9 Mar 2023 14:00:57 +0100 Subject: allow socket broadcast --- src/main.rs | 1 + 1 file changed, 1 insertion(+) 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 { 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, -- cgit v1.2.3