mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-02-23 23:23:05 +08:00
Increase 'just because' sleep to 60s
This commit is contained in:
parent
61a00a7d7e
commit
e242f5a152
1 changed files with 3 additions and 3 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue