mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-26 14:15:53 -05:00
Clients are offline when expired
This commit is contained in:
parent
ca37dc6268
commit
55b198a16a
@ -146,6 +146,10 @@ func (machine *Machine) isOnline() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
if machine.isExpired() {
|
||||
return false
|
||||
}
|
||||
|
||||
return machine.LastSeen.After(time.Now().Add(-keepAliveInterval))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user