fix: Fixed the issue with The child node cannot update the certificate (#10219)

This commit is contained in:
CityFun
2025-09-01 17:39:56 +08:00
committed by GitHub
parent f2335d313c
commit bc95e47b92
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -650,7 +650,7 @@ func (w WebsiteSSLService) Upload(req request.WebsiteSSLUpload) error {
}
pemData = reset
}
if pemData == nil {
if pemData == nil || cert == nil {
return buserr.New("ErrSSLCertificateFormat")
}
+3
View File
@@ -1172,6 +1172,9 @@ func UpdateSSLConfig(websiteSSL model.WebsiteSSL) error {
return buserr.WithErr("ErrSSLApply", err)
}
}
if !global.IsMaster {
return nil
}
enable, sslID := GetSystemSSL()
if enable && sslID == websiteSSL.ID {
fileOp := files.NewFileOp()