From d33e26d5ce90b204496dbda4d352fc16c014d3e1 Mon Sep 17 00:00:00 2001 From: Yureka Date: Sat, 18 Nov 2023 18:55:10 +0100 Subject: [PATCH] fix --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index d2b99d6..af232e8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -197,7 +197,7 @@ 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("[::]".parse()?, config.gossip_port))?; + let socket = UdpSocket::bind(SocketAddr::new("::".parse()?, config.gossip_port))?; //socket.set_broadcast(true)?; socket.set_ttl(1)?;