client/tailscale: fix ExpandSNIName on non-default LocalClient

It was using a mix.

Found by @maisem.

Change-Id: Ieb79d78608474ac13c2f44e0f3d8997a5665eb13
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick 2022-05-05 12:15:59 -07:00 committed by Brad Fitzpatrick
parent 46cb9d98a3
commit c4f06ef7be

View File

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