mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-10-31 19:41:45 +00:00
fix https://github.com/Neilpang/acme.sh/issues/2557 and https://github.com/Neilpang/acme.sh/issues/2544
This commit is contained in:
parent
18ad01533b
commit
d04c6dd3ac
13
acme.sh
13
acme.sh
@ -4047,7 +4047,18 @@ $_authorizations_map"
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$ACME_VERSION" = "2" ]; then
|
if [ "$ACME_VERSION" = "2" ]; then
|
||||||
response="$(echo "$_authorizations_map" | grep "^$(_idn "$d")," | sed "s/$d,//")"
|
_idn_d="$(_idn "$d")"
|
||||||
|
_candindates="$(echo "$_authorizations_map" | grep "^$_idn_d,")"
|
||||||
|
_debug2 _candindates "$_candindates"
|
||||||
|
if [ "$(echo "$_candindates" | wc -l)" -gt 1 ]; then
|
||||||
|
for _can in $_candindates; do
|
||||||
|
if _startswith "$(echo "$_can" | tr '.' '|')" "$(echo "$_idn_d" | tr '.' '|'),"; then
|
||||||
|
_candindates="$_can"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
response="$(echo "$_candindates" | sed "s/$_idn_d,//")"
|
||||||
_debug2 "response" "$response"
|
_debug2 "response" "$response"
|
||||||
if [ -z "$response" ]; then
|
if [ -z "$response" ]; then
|
||||||
_err "get to authz error."
|
_err "get to authz error."
|
||||||
|
Loading…
Reference in New Issue
Block a user