diff --git a/commons/zenoh-util/src/std_only/net/mod.rs b/commons/zenoh-util/src/std_only/net/mod.rs index 9d221eefa2..fd5a215952 100644 --- a/commons/zenoh-util/src/std_only/net/mod.rs +++ b/commons/zenoh-util/src/std_only/net/mod.rs @@ -206,6 +206,7 @@ pub fn get_local_addresses() -> ZResult> { { Ok(pnet_datalink::interfaces() .into_iter() + .filter(|iface| iface.is_up() && iface.is_running()) .flat_map(|iface| iface.ips) .map(|ipnet| ipnet.ip()) .collect())