fix httpreq and powerdns timeout

This commit is contained in:
yoan
2024-10-20 13:37:28 +08:00
parent f53e54c8de
commit 1b796cffd1
2 changed files with 2 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ func (a *powerdns) Apply() (*Certificate, error) {
os.Setenv("PDNS_API_URL", access.ApiUrl)
os.Setenv("PDNS_API_KEY", access.ApiKey)
os.Setenv("PDNS_HTTP_TIMEOUT", fmt.Sprintf("%d", a.option.Timeout))
os.Setenv("PDNS_PROPAGATION_TIMEOUT", fmt.Sprintf("%d", a.option.Timeout))
dnsProvider, err := pdns.NewDNSProvider()
if err != nil {
return nil, err