From 5576972261f57b1394fd058d54346e2d9e40f41a Mon Sep 17 00:00:00 2001 From: Maisem Ali Date: Mon, 8 Jul 2024 13:40:54 -0700 Subject: [PATCH] client/tailscale: use safesocket.ConnectContext I apparently missed this in 4b6a0c42c89a6a004686a13e16d6a0821680d74d. Updates tailscale/corp#18266 Signed-off-by: Maisem Ali --- client/tailscale/localclient.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/tailscale/localclient.go b/client/tailscale/localclient.go index 4c8c25ef9..67bd0c5cf 100644 --- a/client/tailscale/localclient.go +++ b/client/tailscale/localclient.go @@ -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 safesocket.Connect(lc.socket()) + return safesocket.ConnectContext(ctx, lc.socket()) } // DoLocalRequest makes an HTTP request to the local machine's Tailscale daemon.