From 7bcc897379f1615cf5f86dd2c0d07e926bd741ac Mon Sep 17 00:00:00 2001 From: CityFun <31820853+zhengkunwang223@users.noreply.github.com> Date: Mon, 18 Aug 2025 10:57:13 +0800 Subject: [PATCH] fix: Fixed issue with child nodes cannot enable "HTTPS Anti-Site Hijacking" (#10032) Refs https://github.com/1Panel-dev/1Panel/issues/10031 --- agent/app/service/website_ssl.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/agent/app/service/website_ssl.go b/agent/app/service/website_ssl.go index dc7236dd4..0266f1aa4 100644 --- a/agent/app/service/website_ssl.go +++ b/agent/app/service/website_ssl.go @@ -207,6 +207,9 @@ func printSSLLog(logger *log.Logger, msgKey string, params map[string]interface{ } func reloadSystemSSL(websiteSSL *model.WebsiteSSL, logger *log.Logger) { + if global.CoreDB == nil { + return + } systemSSLEnable, sslID := GetSystemSSL() if systemSSLEnable && sslID == websiteSSL.ID { fileOp := files.NewFileOp()