simplify wildecard logic

This commit is contained in:
Jean-Marie 'Histausse' Mineau 2024-03-26 00:45:45 +01:00 committed by Moritz Marquardt
parent 03881382a4
commit c89ce83b6b

View file

@ -233,6 +233,7 @@ func (c *AcmeClient) obtainCert(acmeClient *lego.Client, domains []string, renew
defer c.obtainLocks.Delete(name) defer c.obtainLocks.Delete(name)
if acmeClient == nil { if acmeClient == nil {
if useDnsProvider { if useDnsProvider {
return mockCert(domains[0], "DNS ACME client is not defined", mainDomainSuffix, keyDatabase) return mockCert(domains[0], "DNS ACME client is not defined", mainDomainSuffix, keyDatabase)
} else { } else {