mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-10-01 01:26:08 -04:00
addresses
This commit is contained in:
parent
b993063aba
commit
a6666d3a6c
@ -395,10 +395,16 @@ impl NetworkInterfaces {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if let Some(pipv4) = intf.primary_ipv4() {
|
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() {
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user