mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-09-10 07:05:31 +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
|
// default record verification in the client library makes sure the authoritative nameservers
|
||||||
// have the expected records.
|
// have the expected records.
|
||||||
// Sometimes the Let's Encrypt verification fails anyway because records have not propagated the provider's network fully.
|
// 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)
|
v, err := acmePreCheck(fqdn, value)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return v, err
|
return v, err
|
||||||
}
|
}
|
||||||
if !c.waitedOnce {
|
if !c.waitedOnce {
|
||||||
log.Printf("DNS ok. Waiting another 20s to ensure stability.")
|
log.Printf("DNS ok. Waiting another 60s to ensure stability.")
|
||||||
time.Sleep(20 * time.Second)
|
time.Sleep(60 * time.Second)
|
||||||
c.waitedOnce = true
|
c.waitedOnce = true
|
||||||
}
|
}
|
||||||
log.Printf("DNS records seem to exist. Proceeding to request validation")
|
log.Printf("DNS records seem to exist. Proceeding to request validation")
|
||||||
|
|
Loading…
Add table
Reference in a new issue