1
0
mirror of https://github.com/juanfont/headscale.git synced 2024-12-20 19:09:07 +01:00

chore: fix function names in comment (#1866)

* chore: fix function names in comment

Signed-off-by: oftenoccur <ezc5@sina.com>

---------

Signed-off-by: oftenoccur <ezc5@sina.com>
Co-authored-by: ohdearaugustin <ohdearaugustin@users.noreply.github.com>
This commit is contained in:
oftenoccur 2024-04-22 00:19:38 +08:00 committed by GitHub
parent 8394208856
commit 7d8178406d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -510,7 +510,7 @@ func (s *Scenario) GetIPs(user string) ([]netip.Addr, error) {
return ips, fmt.Errorf("failed to get ips: %w", errNoUserAvailable) return ips, fmt.Errorf("failed to get ips: %w", errNoUserAvailable)
} }
// GetIPs returns all TailscaleClients associated with a User in a Scenario. // GetClients returns all TailscaleClients associated with a User in a Scenario.
func (s *Scenario) GetClients(user string) ([]TailscaleClient, error) { func (s *Scenario) GetClients(user string) ([]TailscaleClient, error) {
var clients []TailscaleClient var clients []TailscaleClient
if ns, ok := s.users[user]; ok { if ns, ok := s.users[user]; ok {
@ -586,7 +586,7 @@ func (s *Scenario) ListTailscaleClientsIPs(users ...string) ([]netip.Addr, error
return allIps, nil return allIps, nil
} }
// ListTailscaleClientsIPs returns a list of FQDN based on Users // ListTailscaleClientsFQDNs returns a list of FQDN based on Users
// passed as parameters. // passed as parameters.
func (s *Scenario) ListTailscaleClientsFQDNs(users ...string) ([]string, error) { func (s *Scenario) ListTailscaleClientsFQDNs(users ...string) ([]string, error) {
allFQDNs := make([]string, 0) allFQDNs := make([]string, 0)