mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-05 20:54:18 +08:00
ignore last checkin if time is zero
This commit is contained in:
parent
9804366f6e
commit
9760c0945f
1 changed files with 2 additions and 1 deletions
|
@ -194,7 +194,8 @@ func GetPeerUpdateForHost(network string, host *models.Host, allNodes []models.N
|
|||
continue
|
||||
}
|
||||
|
||||
if !node.Connected || node.PendingDelete || node.Action == models.NODE_DELETE || time.Since(node.LastCheckIn) > time.Hour {
|
||||
if !node.Connected || node.PendingDelete || node.Action == models.NODE_DELETE ||
|
||||
(!node.LastCheckIn.IsZero() && time.Since(node.LastCheckIn) > time.Hour) {
|
||||
continue
|
||||
}
|
||||
acls, _ := ListAclsByNetwork(models.NetworkID(node.Network))
|
||||
|
|
Loading…
Add table
Reference in a new issue