From 2298254e24b20f7ca74ffdaa9ad524314baf5a0a Mon Sep 17 00:00:00 2001 From: Valmo Trindade Date: Wed, 30 Jul 2025 15:15:38 -0300 Subject: [PATCH] Changed UDP Socket bind address to match the LOCAL address and point to a LOCAL target address, this will fit 99% of the use cases and avoid many mistakes --- src/udp_socket.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/udp_socket.rs b/src/udp_socket.rs index 8d939d5..20d8833 100644 --- a/src/udp_socket.rs +++ b/src/udp_socket.rs @@ -23,10 +23,8 @@ impl UdpClient { client.stop(); } - let udp_address = address.clone(); - thread::spawn(move || { - let socket = match UdpSocket::bind(udp_address) { + let socket = match UdpSocket::bind("0.0.0.0:0") { Ok(s) => s, Err(e) => { let _ = ctx.callback_data(