[client] Skip down interfaces in network address collection for posture checks (#5768)

This commit is contained in:
Viktor Liu
2026-04-07 23:56:48 +08:00
committed by GitHub
parent aba5d6f0d2
commit bb85eee40a
2 changed files with 5 additions and 0 deletions

View File

@@ -153,6 +153,9 @@ func networkAddresses() ([]NetworkAddress, error) {
var netAddresses []NetworkAddress
for _, iface := range interfaces {
if iface.Flags&net.FlagUp == 0 {
continue
}
if iface.HardwareAddr.String() == "" {
continue
}