Fix healthcheck do not check https

This commit is contained in:
Louis Lam 2022-12-10 23:30:32 +08:00
parent 02b5cae577
commit 5176fd02c1
2 changed files with 4 additions and 1 deletions

View File

@ -19,3 +19,6 @@ indent_size = 2
[*.vue]
trim_trailing_whitespace = false
[*.go]
indent_style = tab

View File

@ -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"