summaryrefslogtreecommitdiffhomepage
path: root/client/local/local.go
diff options
context:
space:
mode:
Diffstat (limited to 'client/local/local.go')
-rw-r--r--client/local/local.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/client/local/local.go b/client/local/local.go
index 7d3313063..75fdbe5a5 100644
--- a/client/local/local.go
+++ b/client/local/local.go
@@ -1424,12 +1424,11 @@ func (lc *Client) GetAppConnectorRouteInfo(ctx context.Context) (appctype.RouteI
}
// GetServices returns the Services visible to this node,
-// including their names, IP addresses, and ports, keyed by service name
-// without the "svc:" prefix.
-func (lc *Client) GetServices(ctx context.Context) (map[string]tailcfg.ServiceDetails, error) {
+// including their names, IP addresses, and ports, keyed by service name.
+func (lc *Client) GetServices(ctx context.Context) (map[tailcfg.ServiceName]tailcfg.ServiceDetails, error) {
body, err := lc.get200(ctx, "/localapi/v0/services")
if err != nil {
return nil, err
}
- return decodeJSON[map[string]tailcfg.ServiceDetails](body)
+ return decodeJSON[map[tailcfg.ServiceName]tailcfg.ServiceDetails](body)
}