mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-21 20:38:41 +00:00
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>
This commit is contained in:
parent
5cbbb48c2e
commit
ee976ad704
@ -22,5 +22,5 @@ func GetHardwareAddrs() (hwaddrs []string, err error) {
|
||||
}
|
||||
})
|
||||
slices.Sort(hwaddrs)
|
||||
return
|
||||
return slices.Compact(hwaddrs), err
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user