Increase 'just because' sleep to 60s

This commit is contained in:
Craig Peterson 2019-05-02 19:31:15 -04:00 committed by GitHub
parent 61a00a7d7e
commit e242f5a152
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,14 +13,14 @@ func (c *certManager) preCheckDNS(fqdn, value string) (bool, error) {
// default record verification in the client library makes sure the authoritative nameservers
// have the expected records.
// Sometimes the Let's Encrypt verification fails anyway because records have not propagated the provider's network fully.
// So we add an additional 20 second sleep just for safety.
// So we add an additional 60 second sleep just for safety.
v, err := acmePreCheck(fqdn, value)
if err != nil {
return v, err
}
if !c.waitedOnce {
log.Printf("DNS ok. Waiting another 20s to ensure stability.")
time.Sleep(20 * time.Second)
log.Printf("DNS ok. Waiting another 60s to ensure stability.")
time.Sleep(60 * time.Second)
c.waitedOnce = true
}
log.Printf("DNS records seem to exist. Proceeding to request validation")