From 5176fd02c13c5cc2f4a76f7422dac3af0f338f7f Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Sat, 10 Dec 2022 23:30:32 +0800 Subject: [PATCH] Fix healthcheck do not check https --- .editorconfig | 3 +++ extra/healthcheck.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index 3b272193..47bf4768 100644 --- a/.editorconfig +++ b/.editorconfig @@ -19,3 +19,6 @@ indent_size = 2 [*.vue] trim_trailing_whitespace = false + +[*.go] +indent_style = tab diff --git a/extra/healthcheck.go b/extra/healthcheck.go index 9d277549..779b1583 100644 --- a/extra/healthcheck.go +++ b/extra/healthcheck.go @@ -49,7 +49,7 @@ func main() { } protocol := "" - if len(sslKey) != 0 && len(sslCert) == 0 { + if len(sslKey) != 0 && len(sslCert) != 0 { protocol = "https" } else { protocol = "http"