From 598782052095a8eccd913e3802f06b8b2c7417a2 Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Fri, 15 Nov 2024 19:13:12 +0100 Subject: [PATCH] directadmin: fix timeout configuration (#2351) --- providers/dns/directadmin/directadmin.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/providers/dns/directadmin/directadmin.go b/providers/dns/directadmin/directadmin.go index b25aff8183..889860727d 100644 --- a/providers/dns/directadmin/directadmin.go +++ b/providers/dns/directadmin/directadmin.go @@ -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)