mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-06 21:24:16 +08:00
skip yourself when checking zombies
This commit is contained in:
parent
efb06f37f7
commit
d7a470b030
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue