addresses
This commit is contained in:
parent
b993063aba
commit
a6666d3a6c
@ -395,12 +395,18 @@ impl NetworkInterfaces {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if let Some(pipv4) = intf.primary_ipv4() {
|
if let Some(pipv4) = intf.primary_ipv4() {
|
||||||
|
// Skip temporary addresses because they're going to change
|
||||||
|
if !pipv4.is_temporary() {
|
||||||
intf_addrs.push(pipv4);
|
intf_addrs.push(pipv4);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if let Some(pipv6) = intf.primary_ipv6() {
|
if let Some(pipv6) = intf.primary_ipv6() {
|
||||||
|
// Skip temporary addresses because they're going to change
|
||||||
|
if !pipv6.is_temporary() {
|
||||||
intf_addrs.push(pipv6);
|
intf_addrs.push(pipv6);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Sort one more time to get the best interface addresses overall
|
// Sort one more time to get the best interface addresses overall
|
||||||
intf_addrs.sort();
|
intf_addrs.sort();
|
||||||
|
Loading…
Reference in New Issue
Block a user