fix: 修复 TLS ConnectionState、SPA 回退、健康检查与监听小问题

This commit is contained in:
Nixevol
2026-09-30 16:22:38 +08:00
parent c0b2903ab7
commit 7c926a0904
17 changed files with 590 additions and 62 deletions
+2 -1
View File
@@ -30,8 +30,9 @@ func cmdHealthcheck(_ []string) error {
scheme := "http"
if healthcheckUseHTTPS(cfg) {
scheme = "https"
// 本机 HEALTHCHECK 只连 127.0.0.1,自签证书可接受。
client.Transport = &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, // 本机 HEALTHCHECK,自签证书可接受
TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, //nolint:gosec
}
}
url := scheme + "://" + addr + "/healthz"