mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 11:43:28 +00:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user