1
0
mirror of https://github.com/go-acme/lego.git synced 2024-12-22 07:12:22 +02:00

directadmin: fix timeout configuration (#2351)

This commit is contained in:
Ludovic Fernandez 2024-11-15 19:13:12 +01:00 committed by GitHub
parent 15af1079a0
commit 5987820520
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -99,6 +99,12 @@ func NewDNSProviderConfig(config *Config) (*DNSProvider, error) {
return &DNSProvider{client: client, config: config}, nil
}
// Timeout returns the timeout and interval to use when checking for DNS propagation.
// Adjusting here to cope with spikes in propagation times.
func (d *DNSProvider) Timeout() (timeout, interval time.Duration) {
return d.config.PropagationTimeout, d.config.PollingInterval
}
// Present creates a TXT record using the specified parameters.
func (d *DNSProvider) Present(domain, token, keyAuth string) error {
info := dns01.GetChallengeInfo(domain, keyAuth)