get-certs: DNS01 challenge skipping preCheckDNS (#591)

This commit is contained in:
Anton Yurchenko 2020-01-24 05:54:07 +07:00 committed by Tom Limoncelli
parent 28d650207b
commit 262acdd3d8

View file

@ -152,9 +152,7 @@ func (c *certManager) IssueOrRenewCert(cfg *CertConfig, renewUnder int, verbose
}
client.Challenge.Remove(challenge.HTTP01)
client.Challenge.Remove(challenge.TLSALPN01)
client.Challenge.SetDNS01Provider(c)
dns01.WrapPreCheck(c.preCheckDNS)
client.Challenge.SetDNS01Provider(c, dns01.WrapPreCheck(c.preCheckDNS))
certResource, err := action()
if err != nil {