fix wildcard interpretation

This commit is contained in:
neilpang 2018-03-14 22:03:58 +08:00
parent 931d19eece
commit 38f1b4d205

View File

@ -2999,6 +2999,8 @@ _on_before_issue() {
_chk_pre_hook="$4" _chk_pre_hook="$4"
_chk_local_addr="$5" _chk_local_addr="$5"
_debug _on_before_issue _debug _on_before_issue
_debug _chk_main_domain "$_chk_main_domain"
_debug _chk_alt_domains "$_chk_alt_domains"
#run pre hook #run pre hook
if [ "$_chk_pre_hook" ]; then if [ "$_chk_pre_hook" ]; then
_info "Run pre hook:'$_chk_pre_hook'" _info "Run pre hook:'$_chk_pre_hook'"
@ -3022,8 +3024,8 @@ _on_before_issue() {
_index=1 _index=1
_currentRoot="" _currentRoot=""
_addrIndex=1 _addrIndex=1
while true; do
_w_index=1 _w_index=1
while true; do
d="$(echo "$_chk_main_domain,$_chk_alt_domains," | cut -d , -f "$_w_index")" d="$(echo "$_chk_main_domain,$_chk_alt_domains," | cut -d , -f "$_w_index")"
_w_index="$(_math "$_w_index" + 1)" _w_index="$(_math "$_w_index" + 1)"
_debug d "$d" _debug d "$d"
@ -3561,8 +3563,8 @@ issue() {
if [ "$ACME_VERSION" = "2" ]; then if [ "$ACME_VERSION" = "2" ]; then
#make new order request #make new order request
_identifiers="{\"type\":\"dns\",\"value\":\"$_main_domain\"}" _identifiers="{\"type\":\"dns\",\"value\":\"$_main_domain\"}"
while true; do
_w_index=1 _w_index=1
while true; do
d="$(echo "$_alt_domains," | cut -d , -f "$_w_index")" d="$(echo "$_alt_domains," | cut -d , -f "$_w_index")"
_w_index="$(_math "$_w_index" + 1)" _w_index="$(_math "$_w_index" + 1)"
_debug d "$d" _debug d "$d"
@ -3628,8 +3630,8 @@ $_authorizations_map"
_index=0 _index=0
_currentRoot="" _currentRoot=""
while true; do
_w_index=1 _w_index=1
while true; do
d="$(echo "$_main_domain,$_alt_domains," | cut -d , -f "$_w_index")" d="$(echo "$_main_domain,$_alt_domains," | cut -d , -f "$_w_index")"
_w_index="$(_math "$_w_index" + 1)" _w_index="$(_math "$_w_index" + 1)"
_debug d "$d" _debug d "$d"