mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-04-29 19:32:45 +00:00
Merge fbb513146d71367c9120a141a569bd1612a9fda2 into fca53a0c2cb75ef9a7232c8cb5a0c096d4293152
This commit is contained in:
commit
a14e9130ac
@ -108,7 +108,7 @@ dns_selectel_rm() {
|
||||
# _domain=domain.com
|
||||
# _domain_id=sdjkglgdfewsdfg
|
||||
_get_root() {
|
||||
domain=$1
|
||||
domain="$(echo "$1" | idn -u)"
|
||||
|
||||
if ! _sl_rest GET "/"; then
|
||||
return 1
|
||||
@ -128,7 +128,7 @@ _get_root() {
|
||||
_sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-"$p")
|
||||
_domain=$h
|
||||
_debug "Getting domain id for $h"
|
||||
if ! _sl_rest GET "/$h"; then
|
||||
if ! _sl_rest GET "/$(_idn "$h")"; then
|
||||
return 1
|
||||
fi
|
||||
_domain_id="$(echo "$response" | tr "," "\n" | tr "}" "\n" | tr -d " " | grep "\"id\":" | cut -d : -f 2)"
|
||||
@ -151,9 +151,9 @@ _sl_rest() {
|
||||
|
||||
if [ "$m" != "GET" ]; then
|
||||
_debug data "$data"
|
||||
response="$(_post "$data" "$SL_Api/$ep" "" "$m")"
|
||||
response="$(printf '%b' "$(_post "$data" "$SL_Api/$ep" "" "$m")")"
|
||||
else
|
||||
response="$(_get "$SL_Api/$ep")"
|
||||
response="$(printf '%b' "$(_get "$SL_Api/$ep")")"
|
||||
fi
|
||||
|
||||
if [ "$?" != "0" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user