tsnet/example/tshello: use the correct LocalClient for certs

Fixes #6485

Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
Maisem Ali 2022-11-25 14:55:05 +05:00 committed by Maisem Ali
parent 0c4c66948b
commit 992749c44c
1 changed files with 1 additions and 2 deletions

View File

@ -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) {