client/tailscale: use safesocket.ConnectContext

I apparently missed this in 4b6a0c42c8.

Updates tailscale/corp#18266

Signed-off-by: Maisem Ali <maisem@tailscale.com>
pull/12729/merge
Maisem Ali 5 months ago committed by Maisem Ali
parent ba517ab388
commit 5576972261

@ -103,7 +103,7 @@ func (lc *LocalClient) defaultDialer(ctx context.Context, network, addr string)
return d.DialContext(ctx, "tcp", "127.0.0.1:"+strconv.Itoa(port)) return d.DialContext(ctx, "tcp", "127.0.0.1:"+strconv.Itoa(port))
} }
} }
return safesocket.Connect(lc.socket()) return safesocket.ConnectContext(ctx, lc.socket())
} }
// DoLocalRequest makes an HTTP request to the local machine's Tailscale daemon. // DoLocalRequest makes an HTTP request to the local machine's Tailscale daemon.

Loading…
Cancel
Save