aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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,