1
0
mirror of https://github.com/juanfont/headscale.git synced 2024-10-17 20:05:55 +02:00

Minor improvement on login

This commit is contained in:
Juan Font Alonso 2021-06-05 12:19:48 +02:00
parent d4c2870d7e
commit 47b22f3950

2
api.go
View File

@ -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)