mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-25 14:41:40 +00:00
update get_root
This commit is contained in:
parent
5c94147603
commit
841513501a
@ -122,10 +122,8 @@ _get_root() {
|
|||||||
#not valid
|
#not valid
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
if ! _online_rest GET "domain/$h/version/active"; then
|
|
||||||
_err "Unable to retrive DNS zone matching this domain"
|
_online_rest GET "domain/$h/version/active"
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! _contains "$response" "Domain not found" >/dev/null; then
|
if ! _contains "$response" "Domain not found" >/dev/null; then
|
||||||
_sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-$p)
|
_sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-$p)
|
||||||
@ -136,6 +134,7 @@ _get_root() {
|
|||||||
p=$i
|
p=$i
|
||||||
i=$(_math "$i" + 1)
|
i=$(_math "$i" + 1)
|
||||||
done
|
done
|
||||||
|
_err "Unable to retrive DNS zone matching this domain"
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user