Răsfoiți Sursa

client/tailscale: fix ExpandSNIName on non-default LocalClient

It was using a mix.

Found by @maisem.

Change-Id: Ieb79d78608474ac13c2f44e0f3d8997a5665eb13
Signed-off-by: Brad Fitzpatrick <[email protected]>
Brad Fitzpatrick 3 ani în urmă
părinte
comite
c4f06ef7be
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      client/tailscale/localclient.go

+ 1 - 1
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
 	}