addresses

This commit is contained in:
Christien Rioux 2023-07-23 23:13:42 -04:00
parent b993063aba
commit a6666d3a6c

View File

@ -395,12 +395,18 @@ impl NetworkInterfaces {
continue;
}
if let Some(pipv4) = intf.primary_ipv4() {
// Skip temporary addresses because they're going to change
if !pipv4.is_temporary() {
intf_addrs.push(pipv4);
}
}
if let Some(pipv6) = intf.primary_ipv6() {
// Skip temporary addresses because they're going to change
if !pipv6.is_temporary() {
intf_addrs.push(pipv6);
}
}
}
// Sort one more time to get the best interface addresses overall
intf_addrs.sort();