Skip to content

Commit

Permalink
Zenoh only considers UP and RUNNING network interfaces (eclipse-zenoh…
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHecart authored and jerry73204 committed Jan 12, 2024
1 parent 919a3b0 commit cc500d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions commons/zenoh-util/src/std_only/net/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ pub fn get_local_addresses() -> ZResult<Vec<IpAddr>> {
{
Ok(pnet_datalink::interfaces()
.into_iter()
.filter(|iface| iface.is_up() && iface.is_running())
.flat_map(|iface| iface.ips)
.map(|ipnet| ipnet.ip())
.collect())
Expand Down

0 comments on commit cc500d5

Please sign in to comment.