From 992749c44cf212627ce8c59d5bce40a714a77f2f Mon Sep 17 00:00:00 2001 From: Maisem Ali Date: Fri, 25 Nov 2022 14:55:05 +0500 Subject: [PATCH] tsnet/example/tshello: use the correct LocalClient for certs Fixes #6485 Signed-off-by: Maisem Ali --- tsnet/example/tshello/tshello.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tsnet/example/tshello/tshello.go b/tsnet/example/tshello/tshello.go index 16131ef8a..ae60d9dbf 100644 --- a/tsnet/example/tshello/tshello.go +++ b/tsnet/example/tshello/tshello.go @@ -14,7 +14,6 @@ import ( "net/http" "strings" - "tailscale.com/client/tailscale" "tailscale.com/tsnet" ) @@ -39,7 +38,7 @@ func main() { if *addr == ":443" { ln = tls.NewListener(ln, &tls.Config{ - GetCertificate: tailscale.GetCertificate, + GetCertificate: lc.GetCertificate, }) } log.Fatal(http.Serve(ln, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {