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

This commit is contained in:
Valmo Trindade
2025-07-30 15:15:38 -03:00
parent 853000a5c9
commit 2298254e24

View File

@@ -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(