mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-26 15:02:03 +00:00
commit
0ab2cfaf8b
12
acme.sh
12
acme.sh
@ -4122,17 +4122,17 @@ $_authorizations_map"
|
|||||||
|
|
||||||
if [ "$ACME_VERSION" = "2" ]; then
|
if [ "$ACME_VERSION" = "2" ]; then
|
||||||
_idn_d="$(_idn "$d")"
|
_idn_d="$(_idn "$d")"
|
||||||
_candindates="$(echo "$_authorizations_map" | grep -i "^$_idn_d,")"
|
_candidates="$(echo "$_authorizations_map" | grep -i "^$_idn_d,")"
|
||||||
_debug2 _candindates "$_candindates"
|
_debug2 _candidates "$_candidates"
|
||||||
if [ "$(echo "$_candindates" | wc -l)" -gt 1 ]; then
|
if [ "$(echo "$_candidates" | wc -l)" -gt 1 ]; then
|
||||||
for _can in $_candindates; do
|
for _can in $_candidates; do
|
||||||
if _startswith "$(echo "$_can" | tr '.' '|')" "$(echo "$_idn_d" | tr '.' '|'),"; then
|
if _startswith "$(echo "$_can" | tr '.' '|')" "$(echo "$_idn_d" | tr '.' '|'),"; then
|
||||||
_candindates="$_can"
|
_candidates="$_can"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
response="$(echo "$_candindates" | sed "s/$_idn_d,//")"
|
response="$(echo "$_candidates" | 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