Skip to content

Commit

Permalink
Minor improvement on login
Browse files Browse the repository at this point in the history
juanfont committed Jun 5, 2021
1 parent d4c2870 commit 47b22f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api.go
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 47b22f3

Please sign in to comment.