mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-21 18:22:37 +02:00
minor fix
This commit is contained in:
parent
bd753dd3e7
commit
853c5abcf8
@ -146,13 +146,11 @@ 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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return h.Sum64() + macs
|
return h.Sum64() + macs
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user