Skip to content

Commit 5987820

Browse files
authored
directadmin: fix timeout configuration (#2351)
1 parent 15af107 commit 5987820

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

providers/dns/directadmin/directadmin.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ func NewDNSProviderConfig(config *Config) (*DNSProvider, error) {
9999
return &DNSProvider{client: client, config: config}, nil
100100
}
101101

102+
// Timeout returns the timeout and interval to use when checking for DNS propagation.
103+
// Adjusting here to cope with spikes in propagation times.
104+
func (d *DNSProvider) Timeout() (timeout, interval time.Duration) {
105+
return d.config.PropagationTimeout, d.config.PollingInterval
106+
}
107+
102108
// Present creates a TXT record using the specified parameters.
103109
func (d *DNSProvider) Present(domain, token, keyAuth string) error {
104110
info := dns01.GetChallengeInfo(domain, keyAuth)

0 commit comments

Comments
 (0)