Protect against expiry nil
This commit is contained in:
parent
ec4dc68524
commit
ef422e6988
2 changed files with 2 additions and 1 deletions
1
api.go
1
api.go
|
@ -144,6 +144,7 @@ func (h *Headscale) RegistrationHandler(ctx *gin.Context) {
|
|||
Name: req.Hostinfo.Hostname,
|
||||
NodeKey: NodePublicKeyStripPrefix(req.NodeKey),
|
||||
LastSeen: &now,
|
||||
Expiry: &time.Time{},
|
||||
}
|
||||
|
||||
if !req.Expiry.IsZero() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue