mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-10 14:12:43 +00:00
Fix authorization lookup problem with similar domain names.
E.g. api.example.com previously also matched api-example.com
This commit is contained in:
parent
d9db90752e
commit
2ede03b8f2
2
acme.sh
2
acme.sh
@ -3692,7 +3692,7 @@ $_authorizations_map"
|
||||
fi
|
||||
|
||||
if [ "$ACME_VERSION" = "2" ]; then
|
||||
response="$(echo "$_authorizations_map" | grep "^$d," | sed "s/$d,//")"
|
||||
response="$(echo "$_authorizations_map" | grep "^${d//./\.}," | sed "s/$d,//")"
|
||||
_debug2 "response" "$response"
|
||||
if [ -z "$response" ]; then
|
||||
_err "get to authz error."
|
||||
|
Loading…
x
Reference in New Issue
Block a user