diff --git a/internal/home/clients.go b/internal/home/clients.go index b505bf5fd4d..ef1a11a7880 100644 --- a/internal/home/clients.go +++ b/internal/home/clients.go @@ -932,10 +932,11 @@ func (clients *clientsContainer) updateFromDHCP(add bool) { log.Debug("clients: added %d client aliases from dhcp", n) } -// Close implements the [io.Closer] interface for *clientsContainer. +// Close gracefully closes all the client-specific upstream configurations of +// the persistent clients. func (clients *clientsContainer) Close() (err error) { persistent := maps.Values(clients.list) - slices.SortFunc(persistent, func(a, b *Client) bool { return a.Name < b.Name }) + slices.SortFunc(persistent, func(a, b *Client) (less bool) { return a.Name < b.Name }) var errs []error