fix
This commit is contained in:
parent
1680284107
commit
d33e26d5ce
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ impl Daemon {
|
||||||
|
|
||||||
let interface_names = config.peers.iter().map(|peer| peer.interface.clone()).collect::<HashSet<_>>();
|
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 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_broadcast(true)?;
|
||||||
socket.set_ttl(1)?;
|
socket.set_ttl(1)?;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue