From a6666d3a6c5412d9a9b4916f2e1b77b4185512e8 Mon Sep 17 00:00:00 2001 From: Christien Rioux Date: Sun, 23 Jul 2023 23:13:42 -0400 Subject: [PATCH] addresses --- veilid-core/src/intf/native/network_interfaces/mod.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/veilid-core/src/intf/native/network_interfaces/mod.rs b/veilid-core/src/intf/native/network_interfaces/mod.rs index 84180b9f..59f1ae49 100644 --- a/veilid-core/src/intf/native/network_interfaces/mod.rs +++ b/veilid-core/src/intf/native/network_interfaces/mod.rs @@ -395,10 +395,16 @@ impl NetworkInterfaces { continue; } if let Some(pipv4) = intf.primary_ipv4() { - intf_addrs.push(pipv4); + // Skip temporary addresses because they're going to change + if !pipv4.is_temporary() { + intf_addrs.push(pipv4); + } } if let Some(pipv6) = intf.primary_ipv6() { - intf_addrs.push(pipv6); + // Skip temporary addresses because they're going to change + if !pipv6.is_temporary() { + intf_addrs.push(pipv6); + } } }