mirror of
https://github.com/juanfont/headscale.git
synced 2025-10-25 02:20:15 +00:00
Create constants for other reg methods
This commit is contained in:
@@ -660,7 +660,7 @@ func (h *Headscale) RegisterMachine(
|
||||
machine.IPAddress = ip.String()
|
||||
machine.NamespaceID = namespace.ID
|
||||
machine.Registered = true
|
||||
machine.RegisterMethod = "cli"
|
||||
machine.RegisterMethod = RegisterMethodCLI
|
||||
h.db.Save(&machine)
|
||||
|
||||
log.Trace().
|
||||
|
||||
Reference in New Issue
Block a user