mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-18 22:22:59 +08:00
fix: 解决申请证书,域名无效导致的 panic
This commit is contained in:
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) {
|
||||
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)
|
||||
|
@ -25,7 +25,7 @@ const getType = (status: string) => {
|
||||
case 'error':
|
||||
return 'danger';
|
||||
case 'stopped':
|
||||
return 'warning';
|
||||
return 'danger';
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user