From c4f06ef7beeeb0a3eee0cfefda91fff5fc48fde0 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Thu, 5 May 2022 12:15:59 -0700 Subject: [PATCH] client/tailscale: fix ExpandSNIName on non-default LocalClient It was using a mix. Found by @maisem. Change-Id: Ieb79d78608474ac13c2f44e0f3d8997a5665eb13 Signed-off-by: Brad Fitzpatrick --- 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 33bfe0ad3..8697c1137 100644 --- a/client/tailscale/localclient.go +++ b/client/tailscale/localclient.go @@ -651,7 +651,7 @@ func ExpandSNIName(ctx context.Context, name string) (fqdn string, ok bool) { // ExpandSNIName expands bare label name into the the most likely actual TLS cert name. func (lc *LocalClient) ExpandSNIName(ctx context.Context, name string) (fqdn string, ok bool) { - st, err := StatusWithoutPeers(ctx) + st, err := lc.StatusWithoutPeers(ctx) if err != nil { return "", false }