Create constants for other reg methods

This commit is contained in:
Kristoffer Dalby 2021-11-18 17:51:54 +00:00
parent 58d1255357
commit 106b1e7e8d
3 changed files with 4 additions and 4 deletions

View file

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