mirror of
https://github.com/juanfont/headscale.git
synced 2025-10-16 10:40:34 +00:00
Fill RegisterMethod field in Machine
This commit is contained in:
1
api.go
1
api.go
@@ -397,6 +397,7 @@ func (h *Headscale) handleNewServer(c *gin.Context, db *gorm.DB, idKey wgcfg.Key
|
||||
m.IPAddress = ip.String()
|
||||
m.NamespaceID = pak.NamespaceID
|
||||
m.AuthKeyID = uint(pak.ID)
|
||||
m.RegisterMethod = "authKey"
|
||||
m.Registered = true
|
||||
db.Save(&m)
|
||||
|
||||
|
Reference in New Issue
Block a user