Fill RegisterMethod field in Machine

This commit is contained in:
Juan Font Alonso committed 2021-05-06 18:26:01 +02:00
1 parent 9bac805d50
commit fc0c519206
2 files changed
+2

No files matched your search

+1
View File
@@ -43,6 +43,7 @@ func (h *Headscale) RegisterMachine(key string, namespace string) error {
m.IPAddress = ip.String()
m.NamespaceID = ns.ID
m.Registered = true
m.RegisterMethod = "cli"
db.Save(&m)
fmt.Println("Machine registered 🎉")
return nil