mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-18 20:51:45 +00:00
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"
|
"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…
x
Reference in New Issue
Block a user