mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-21 10:18:50 +02:00
minor fix
This commit is contained in:
parent
bd753dd3e7
commit
853c5abcf8
@ -146,11 +146,9 @@ func metaHash(meta nbpeer.PeerSystemMeta, pubip string) uint64 {
|
|||||||
h.Write([]byte(pubip))
|
h.Write([]byte(pubip))
|
||||||
|
|
||||||
macs := uint64(0)
|
macs := uint64(0)
|
||||||
if len(meta.NetworkAddresses) != 0 {
|
for _, na := range meta.NetworkAddresses {
|
||||||
for _, na := range meta.NetworkAddresses {
|
for _, r := range na.Mac {
|
||||||
for _, r := range na.Mac {
|
macs += uint64(r)
|
||||||
macs += uint64(r)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user