client/tailscale: use safesocket.ConnectContext

I apparently missed this in 4b6a0c42c8.

Updates tailscale/corp#18266

Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
Maisem Ali 2024-07-08 13:40:54 -07:00 committed by Maisem Ali
parent ba517ab388
commit 5576972261

View File

@ -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.