mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-11 15:44:52 +08:00
Merge pull request #3507 from gravitl/v0.99_fixes
ignore last checkin if time is zero
This commit is contained in:
commit
473259a797
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