diff --git a/io/zenoh-links/zenoh-link-tcp/src/unicast.rs b/io/zenoh-links/zenoh-link-tcp/src/unicast.rs index 3b6d3d9e63..3876a947ca 100644 --- a/io/zenoh-links/zenoh-link-tcp/src/unicast.rs +++ b/io/zenoh-links/zenoh-link-tcp/src/unicast.rs @@ -146,28 +146,24 @@ impl LinkUnicastTrait for LinkUnicastTcp { #[inline(always)] fn get_interface_names(&self) -> Vec { - zenoh_util::net::get_interface_names_by_addr(self.src_addr.ip()).ok(); - /* - match zenoh_util::net::get_interface_names_by_addr(self.src_addr.ip()) { - Ok(interfaces) => { - log::trace!( - "get_interface_names for {:?}: {:?}", - self.src_addr.ip(), - interfaces - ); - interfaces - } - Err(e) => { - log::debug!( - "get_interface_names for {:?} failed: {:?}", - self.src_addr.ip(), - e - ); - vec![] - } - } - */ - vec![] + match zenoh_util::net::get_interface_names_by_addr(self.src_addr.ip()) { + Ok(interfaces) => { + log::trace!( + "get_interface_names for {:?}: {:?}", + self.src_addr.ip(), + interfaces + ); + interfaces + } + Err(e) => { + log::debug!( + "get_interface_names for {:?} failed: {:?}", + self.src_addr.ip(), + e + ); + vec![] + } + } } #[inline(always)] diff --git a/io/zenoh-transport/tests/unicast_intermittent.rs b/io/zenoh-transport/tests/unicast_intermittent.rs index d1aad4ef38..d8a7008d99 100644 --- a/io/zenoh-transport/tests/unicast_intermittent.rs +++ b/io/zenoh-transport/tests/unicast_intermittent.rs @@ -42,7 +42,7 @@ use zenoh_transport::{ const MSG_SIZE: usize = 8; const MSG_COUNT: usize = 100_000; -const TIMEOUT: Duration = Duration::from_secs(300); +const TIMEOUT: Duration = Duration::from_secs(3000); const SLEEP: Duration = Duration::from_millis(100); const USLEEP: Duration = Duration::from_millis(1);