mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-11 20:47:34 +00:00
Clients are offline when expired
This commit is contained in:
@@ -146,6 +146,10 @@ func (machine *Machine) isOnline() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
if machine.isExpired() {
|
||||
return false
|
||||
}
|
||||
|
||||
return machine.LastSeen.After(time.Now().Add(-keepAliveInterval))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user