From ce833c42a601458b3e62aa43134e010899d6d1ad Mon Sep 17 00:00:00 2001 From: John Smith Date: Thu, 17 Mar 2022 20:31:07 -0400 Subject: [PATCH] disable bound first, go with simple check --- .../intf/native/network/protocol/sockets.rs | 45 +++++++++-------- .../intf/native/network/start_protocols.rs | 48 +++++++++---------- 2 files changed, 49 insertions(+), 44 deletions(-) diff --git a/veilid-core/src/intf/native/network/protocol/sockets.rs b/veilid-core/src/intf/native/network/protocol/sockets.rs index 0c3cd281..7f97bee7 100644 --- a/veilid-core/src/intf/native/network/protocol/sockets.rs +++ b/veilid-core/src/intf/native/network/protocol/sockets.rs @@ -52,7 +52,7 @@ pub fn new_bound_shared_udp_socket(local_address: SocketAddr) -> Result Result Result { socket.set_reuse_port(true).map_err(|e| format!("Couldn't set reuse port: {}", e))?; } } + Ok(socket) } @@ -132,6 +133,8 @@ pub fn new_bound_shared_tcp_socket(local_address: SocketAddr) -> Result Result