mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-11-11 12:10:45 +08:00
fix: Fix the issue of failing to save IPv6 self-signed certificate (#9495)
This commit is contained in:
parent
2694a725d6
commit
7d5f0aa906
2 changed files with 4 additions and 1 deletions
|
|
@ -524,7 +524,7 @@ func (w WebsiteSSLService) Update(update request.WebsiteSSLUpdate) error {
|
||||||
if update.OtherDomains != "" {
|
if update.OtherDomains != "" {
|
||||||
otherDomainArray := strings.Split(update.OtherDomains, "\n")
|
otherDomainArray := strings.Split(update.OtherDomains, "\n")
|
||||||
for _, domain := range otherDomainArray {
|
for _, domain := range otherDomainArray {
|
||||||
if !common.IsValidDomain(domain) {
|
if websiteSSL.Provider != constant.SelfSigned && !common.IsValidDomain(domain) {
|
||||||
return buserr.WithName("ErrDomainFormat", domain)
|
return buserr.WithName("ErrDomainFormat", domain)
|
||||||
}
|
}
|
||||||
domains = append(domains, domain)
|
domains = append(domains, domain)
|
||||||
|
|
|
||||||
|
|
@ -268,6 +268,9 @@ const acceptParams = (op: string, websiteSSL: Website.SSLDTO) => {
|
||||||
ssl.value.keyType = websiteSSL.keyType;
|
ssl.value.keyType = websiteSSL.keyType;
|
||||||
ssl.value.execShell = websiteSSL.execShell;
|
ssl.value.execShell = websiteSSL.execShell;
|
||||||
ssl.value.shell = websiteSSL.shell;
|
ssl.value.shell = websiteSSL.shell;
|
||||||
|
if (ssl.value.provider == 'selfSigned') {
|
||||||
|
rules.value.primaryDomain = [];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
ssl.value.websiteId = Number(id.value);
|
ssl.value.websiteId = Number(id.value);
|
||||||
getAcmeAccounts();
|
getAcmeAccounts();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue