mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-10 04:16:29 +08:00
fix: 解决申请证书,域名无效导致的 panic
This commit is contained in:
parent
c488507d96
commit
e52ddd3f39
2 changed files with 3 additions and 3 deletions
|
|
@ -194,11 +194,11 @@ func (p *manualDnsProvider) CleanUp(domain, token, keyAuth string) error {
|
||||||
func (c *AcmeClient) GetDNSResolve(domains []string) (map[string]Resolve, error) {
|
func (c *AcmeClient) GetDNSResolve(domains []string) (map[string]Resolve, error) {
|
||||||
core, err := api.New(c.Config.HTTPClient, c.Config.UserAgent, c.Config.CADirURL, c.User.Registration.URI, c.User.Key)
|
core, err := api.New(c.Config.HTTPClient, c.Config.UserAgent, c.Config.CADirURL, c.User.Registration.URI, c.User.Key)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
return nil, err
|
||||||
}
|
}
|
||||||
order, err := core.Orders.New(domains)
|
order, err := core.Orders.New(domains)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
return nil, err
|
||||||
}
|
}
|
||||||
resolves := make(map[string]Resolve)
|
resolves := make(map[string]Resolve)
|
||||||
resc, errc := make(chan acme.Authorization), make(chan domainError)
|
resc, errc := make(chan acme.Authorization), make(chan domainError)
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ const getType = (status: string) => {
|
||||||
case 'error':
|
case 'error':
|
||||||
return 'danger';
|
return 'danger';
|
||||||
case 'stopped':
|
case 'stopped':
|
||||||
return 'warning';
|
return 'danger';
|
||||||
default:
|
default:
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue