fix(tls): reuse the generated HTTPS certificate across updates

(cherry picked from commit 4f2af3371bd5ff89721f222462713bc16beed4b2)
This commit is contained in:
Sycun committed 2026-11-13 11:14:04 +08:00
1 parent 48065ad75f
commit 83b0b7b909
10 files changed
+128 -26

No files matched your search

+1 -1
View File
@@ -30,7 +30,7 @@ func ServerHTTPRedirectEnabled(s *ServerConfig) bool {
}
// ApplyDevHTTPSBootstrap 供 --https / 一键脚本使用:强制开启主站 TLS。
// 若已配置 tls_cert_path 与 tls_key_path 则仅用 PEM,不开启自签;否则启用 tls_auto_self_sign(内存证书,仅本地测试)。
// 若已配置 tls_cert_path 与 tls_key_path 则使用 PEM,否则启用 tls_auto_self_sign(仅本地测试)。
func ApplyDevHTTPSBootstrap(cfg *Config) {
if cfg == nil {
return