Skip to content

Commit ee976ad

Browse files
committed
posture: deduplicate MAC addresses before returning them
Some machines have multiple network interfaces with the same MAC address. Updates tailscale/corp#21371 Signed-off-by: Anton Tolchanov <anton@tailscale.com>
1 parent 5cbbb48 commit ee976ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

posture/hwaddr.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ func GetHardwareAddrs() (hwaddrs []string, err error) {
2222
}
2323
})
2424
slices.Sort(hwaddrs)
25-
return
25+
return slices.Compact(hwaddrs), err
2626
}

0 commit comments

Comments
 (0)