Skip to content

Commit

Permalink
directadmin: fix timeout configuration (#2351)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez authored Nov 15, 2024
1 parent 15af107 commit 5987820
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions providers/dns/directadmin/directadmin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5987820

Please sign in to comment.