diff options
Diffstat (limited to 'client')
| -rw-r--r-- | client/local/local.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/client/local/local.go b/client/local/local.go index 75fdbe5a5..7d3313063 100644 --- a/client/local/local.go +++ b/client/local/local.go @@ -1424,11 +1424,12 @@ 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. -func (lc *Client) GetServices(ctx context.Context) (map[tailcfg.ServiceName]tailcfg.ServiceDetails, error) { +// 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) { body, err := lc.get200(ctx, "/localapi/v0/services") if err != nil { return nil, err } - return decodeJSON[map[tailcfg.ServiceName]tailcfg.ServiceDetails](body) + return decodeJSON[map[string]tailcfg.ServiceDetails](body) } |
