fix: 解决申请证书,域名无效导致的 panic

This commit is contained in:
zhengkunwang223 2023-03-11 21:46:43 +08:00 committed by zhengkunwang223
parent c488507d96
commit e52ddd3f39
2 changed files with 3 additions and 3 deletions

View File

@ -194,11 +194,11 @@ func (p *manualDnsProvider) CleanUp(domain, token, keyAuth string) 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)
if err != nil {
panic(err)
return nil, err
}
order, err := core.Orders.New(domains)
if err != nil {
panic(err)
return nil, err
}
resolves := make(map[string]Resolve)
resc, errc := make(chan acme.Authorization), make(chan domainError)

View File

@ -25,7 +25,7 @@ const getType = (status: string) => {
case 'error':
return 'danger';
case 'stopped':
return 'warning';
return 'danger';
default:
return '';
}