From 7ef8cd881c2bcdf624c05d039399095873f32df8 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Sun, 24 Apr 2022 21:10:50 +0100 Subject: [PATCH] Fix comment --- machine.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,