mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-23 08:00:55 +00:00
fix: Fix the issue of failing to save IPv6 self-signed certificate (#9495)
This commit is contained in:
@@ -524,7 +524,7 @@ func (w WebsiteSSLService) Update(update request.WebsiteSSLUpdate) error {
|
||||
if update.OtherDomains != "" {
|
||||
otherDomainArray := strings.Split(update.OtherDomains, "\n")
|
||||
for _, domain := range otherDomainArray {
|
||||
if !common.IsValidDomain(domain) {
|
||||
if websiteSSL.Provider != constant.SelfSigned && !common.IsValidDomain(domain) {
|
||||
return buserr.WithName("ErrDomainFormat", domain)
|
||||
}
|
||||
domains = append(domains, domain)
|
||||
|
||||
@@ -268,6 +268,9 @@ const acceptParams = (op: string, websiteSSL: Website.SSLDTO) => {
|
||||
ssl.value.keyType = websiteSSL.keyType;
|
||||
ssl.value.execShell = websiteSSL.execShell;
|
||||
ssl.value.shell = websiteSSL.shell;
|
||||
if (ssl.value.provider == 'selfSigned') {
|
||||
rules.value.primaryDomain = [];
|
||||
}
|
||||
}
|
||||
ssl.value.websiteId = Number(id.value);
|
||||
getAcmeAccounts();
|
||||
|
||||
Reference in New Issue
Block a user