mirror of
https://github.com/juanfont/headscale.git
synced 2025-10-15 16:20:36 +00:00
Protect against expiry nil
This commit is contained in:
@@ -117,7 +117,7 @@ func (machine Machine) isExpired() bool {
|
||||
// If Expiry is not set, the client has not indicated that
|
||||
// it wants an expiry time, it is therefor considered
|
||||
// to mean "not expired"
|
||||
if machine.Expiry.IsZero() {
|
||||
if machine.Expiry == nil || machine.Expiry.IsZero() {
|
||||
return false
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user