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>pull/4623/head
parent
46cb9d98a3
commit
c4f06ef7be
|
@ -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.
|
// 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) {
|
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 {
|
if err != nil {
|
||||||
return "", false
|
return "", false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue