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

pull/203/head
zhengkunwang223 2 years ago committed by zhengkunwang223
parent c488507d96
commit e52ddd3f39

@ -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…
Cancel
Save