Merge pull request #6393 from diamondo25/dev-configure-acme_directory-timeout

Configure 10 second timeout to ACME_DIRECTORY API call
pull/4970/merge
neil 2025-06-21 22:19:56 +02:00 committed by GitHub
commit 21c758c3d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -2767,7 +2767,7 @@ _initAPI() {
_request_retry_times=0
while [ -z "$ACME_NEW_ACCOUNT" ] && [ "${_request_retry_times}" -lt "$MAX_API_RETRY_TIMES" ]; do
_request_retry_times=$(_math "$_request_retry_times" + 1)
response=$(_get "$_api_server")
response=$(_get "$_api_server" "" 10)
if [ "$?" != "0" ]; then
_debug2 "response" "$response"
_info "Cannot init API for: $_api_server."