[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

@@ -144,6 +144,8 @@ func (m *localIPManager) UpdateLocalIPs(iface common.IFaceMapper) (err error) {
if err != nil {
log.Warnf("failed to get interfaces: %v", err)
} else {
// TODO: filter out down interfaces (net.FlagUp). Also handle the reverse
// case where an interface comes up between refreshes.
for _, intf := range interfaces {
m.processInterface(intf, &newIPv4Bitmap, ipv4Set, &ipv4Addresses)
}