cmd/proxy-to-grafana: use localClient.GetCertificate (#5024)

Closes #5023

Signed-off-by: Xe <xe@tailscale.com>
This commit is contained in:
Xe Iaso 2022-07-08 14:33:14 -04:00 committed by GitHub
parent 5bb44a4a5c
commit d6b8a18b09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,7 +84,7 @@ func main() {
if *useHTTPS { if *useHTTPS {
ln, err = ts.Listen("tcp", ":443") ln, err = ts.Listen("tcp", ":443")
ln = tls.NewListener(ln, &tls.Config{ ln = tls.NewListener(ln, &tls.Config{
GetCertificate: tailscale.GetCertificate, GetCertificate: localClient.GetCertificate,
}) })
go func() { go func() {