diff --git a/src/main.rs b/src/main.rs index df66c8a..d2b99d6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -197,8 +197,9 @@ impl Daemon { let interface_names = config.peers.iter().map(|peer| peer.interface.clone()).collect::>(); let interfaces = interface_names.into_iter().map(|interface_name| wg_dump(&interface_name).map(|ifinfo| (interface_name, ifinfo))).collect::>>()?; - let socket = UdpSocket::bind(SocketAddr::new("0.0.0.0".parse()?, config.gossip_port))?; - socket.set_broadcast(true)?; + let socket = UdpSocket::bind(SocketAddr::new("[::]".parse()?, config.gossip_port))?; + //socket.set_broadcast(true)?; + socket.set_ttl(1)?; let peers = config.peers.iter().map(|peer_cfg| { (