fix: Fixed issue with child nodes cannot enable "HTTPS Anti-Site Hijacking" (#10032)

Refs https://github.com/1Panel-dev/1Panel/issues/10031
This commit is contained in:
CityFun 2025-08-18 10:57:13 +08:00 committed by GitHub
parent cd2109fefe
commit 7bcc897379
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()