diff --git a/machine.go b/machine.go index b1f03f0c..0b08d3f9 100644 --- a/machine.go +++ b/machine.go @@ -378,7 +378,8 @@ func (h *Headscale) ExpireMachine(machine *Machine) { h.db.Save(machine) } -// RenameMachine takes a Machine struct and sets the expire field to now. +// RenameMachine takes a Machine struct and a new GivenName for the machines +// and renames it. func (h *Headscale) RenameMachine(machine *Machine, newName string) error { err := CheckForFQDNRules( newName,