mirror of
https://github.com/gravitl/netmaker.git
synced 2024-09-21 15:56:07 +08:00
skip yourself when checking zombies
This commit is contained in:
parent
efb06f37f7
commit
d7a470b030
|
@ -84,6 +84,9 @@ func InitalizeZombies() {
|
|||
continue
|
||||
}
|
||||
for _, othernode := range othernodes {
|
||||
if node.ID == othernode.ID {
|
||||
continue
|
||||
}
|
||||
if node.MacAddress == othernode.MacAddress {
|
||||
if node.LastCheckIn > othernode.LastCheckIn {
|
||||
zombies = append(zombies, othernode.ID)
|
||||
|
|
Loading…
Reference in a new issue