tsnet/example/tshello: use the correct LocalClient for certs
Fixes #6485 Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
parent
0c4c66948b
commit
992749c44c
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue