mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-12-24 04:48:21 -06:00
disable broadcasting
This commit is contained in:
parent
2e66d0bda8
commit
9f861999e1
|
@ -17,7 +17,7 @@ impl Server {
|
||||||
pub fn bind(addr: SocketAddr) -> anyhow::Result<Self> {
|
pub fn bind(addr: SocketAddr) -> anyhow::Result<Self> {
|
||||||
let socket = UdpSocket::bind(addr)?;
|
let socket = UdpSocket::bind(addr)?;
|
||||||
socket.set_nonblocking(true)?;
|
socket.set_nonblocking(true)?;
|
||||||
socket.set_broadcast(true)?;
|
//socket.set_broadcast(true)?;
|
||||||
Ok(Self {
|
Ok(Self {
|
||||||
socket,
|
socket,
|
||||||
clients: HashMap::with_capacity_and_hasher(MAX_CLIENTS, BuildNoHashHasher::default())
|
clients: HashMap::with_capacity_and_hasher(MAX_CLIENTS, BuildNoHashHasher::default())
|
||||||
|
|
Loading…
Reference in a new issue