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

@@ -28,7 +28,7 @@ func (a *httpReq) Apply() (*Certificate, error) {
os.Setenv("HTTPREQ_MODE", access.Mode)
os.Setenv("HTTPREQ_USERNAME", access.Username)
os.Setenv("HTTPREQ_PASSWORD", access.Password)
os.Setenv("HTTPREQ_HTTP_TIMEOUT", fmt.Sprintf("%d", a.option.Timeout))
os.Setenv("HTTPREQ_PROPAGATION_TIMEOUT", fmt.Sprintf("%d", a.option.Timeout))
dnsProvider, err := httpreq.NewDNSProvider()
if err != nil {
return nil, err