This commit is contained in:
Yureka 2023-11-18 18:55:10 +01:00
parent 1680284107
commit d33e26d5ce

View file

@ -197,7 +197,7 @@ impl Daemon {
let interface_names = config.peers.iter().map(|peer| peer.interface.clone()).collect::<HashSet<_>>();
let interfaces = interface_names.into_iter().map(|interface_name| wg_dump(&interface_name).map(|ifinfo| (interface_name, ifinfo))).collect::<Result<HashMap<_, _>>>()?;
let socket = UdpSocket::bind(SocketAddr::new("[::]".parse()?, config.gossip_port))?;
let socket = UdpSocket::bind(SocketAddr::new("::".parse()?, config.gossip_port))?;
//socket.set_broadcast(true)?;
socket.set_ttl(1)?;