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

Fixes #6485

Signed-off-by: Maisem Ali <maisem@tailscale.com>
pull/6508/head
Maisem Ali 2 years ago committed by Maisem Ali
parent 0c4c66948b
commit 992749c44c

@ -14,7 +14,6 @@ import (
"net/http" "net/http"
"strings" "strings"
"tailscale.com/client/tailscale"
"tailscale.com/tsnet" "tailscale.com/tsnet"
) )
@ -39,7 +38,7 @@ func main() {
if *addr == ":443" { if *addr == ":443" {
ln = tls.NewListener(ln, &tls.Config{ 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) { log.Fatal(http.Serve(ln, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {

Loading…
Cancel
Save