From bb93bc7d52919f979bcd1df04885367a20ed5b24 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Fri, 16 Jun 2023 20:55:24 +0800 Subject: [PATCH] add comment --- src/lan.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lan.rs b/src/lan.rs index 233e654b1..b6a2ceb0a 100644 --- a/src/lan.rs +++ b/src/lan.rs @@ -167,6 +167,7 @@ fn get_ipaddr_by_peer(peer: A) -> Option { fn create_broadcast_sockets() -> ResultType> { let mut sockets = Vec::new(); for v4_addr in get_all_ipv4s()? { + // removing v4_addr.is_private() check, https://github.com/rustdesk/rustdesk/issues/4663 let s = UdpSocket::bind(SocketAddr::from((v4_addr, 0)))?; s.set_broadcast(true)?; log::debug!("Bind socket to {}", &v4_addr);