From 9f861999e1a26c65f2b392df228818f0b8364ba7 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Mon, 6 Feb 2023 02:41:34 +0100 Subject: [PATCH] disable broadcasting --- kubi-udp/src/server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubi-udp/src/server.rs b/kubi-udp/src/server.rs index a6a1a1d..3aead64 100644 --- a/kubi-udp/src/server.rs +++ b/kubi-udp/src/server.rs @@ -17,7 +17,7 @@ impl Server { pub fn bind(addr: SocketAddr) -> anyhow::Result { let socket = UdpSocket::bind(addr)?; socket.set_nonblocking(true)?; - socket.set_broadcast(true)?; + //socket.set_broadcast(true)?; Ok(Self { socket, clients: HashMap::with_capacity_and_hasher(MAX_CLIENTS, BuildNoHashHasher::default())