Update acme.sh

fix https://github.com/acmesh-official/acme.sh/issues/4001
This commit is contained in:
neilpang 2022-03-27 12:08:24 +08:00
parent a50158cbeb
commit 0d05f9ba80

View File

@ -1845,7 +1845,9 @@ _inithttp() {
_ACME_WGET="$_ACME_WGET --max-redirect 0 "
fi
if [ "$DEBUG" ] && [ "$DEBUG" -ge "2" ]; then
_ACME_WGET="$_ACME_WGET -d "
if [ "$_ACME_WGET" ] && _contains "$($_ACME_WGET --help 2>&1)" "--debug"; then
_ACME_WGET="$_ACME_WGET -d "
fi
fi
if [ "$CA_PATH" ]; then
_ACME_WGET="$_ACME_WGET --ca-directory=$CA_PATH "