Minor improvement on login
This commit is contained in:
parent
d4c2870d7e
commit
47b22f3950
1 changed files with 1 additions and 1 deletions
2
api.go
2
api.go
|
@ -136,7 +136,7 @@ func (h *Headscale) RegistrationHandler(c *gin.Context) {
|
|||
|
||||
// The NodeKey we have matches OldNodeKey, which means this is a refresh after an key expiration
|
||||
if m.NodeKey == wgcfg.Key(req.OldNodeKey).HexString() {
|
||||
log.Printf("[%s] We have the NodeKey in the database. This is a key refresh", m.Name)
|
||||
log.Printf("[%s] We have the OldNodeKey in the database. This is a key refresh", m.Name)
|
||||
m.NodeKey = wgcfg.Key(req.NodeKey).HexString()
|
||||
db.Save(&m)
|
||||
|
||||
|
|
Loading…
Reference in a new issue