mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-06-14 21:02:45 +00:00
Merge 17ecff7a3b8377651c5c279eb7520414abfe2b1e into 3d8b682380773f01df0e5abc2ef582c30c663010
This commit is contained in:
commit
324b366192
@ -84,19 +84,17 @@ EOF
|
|||||||
# _domain=domain.com
|
# _domain=domain.com
|
||||||
_get_root() {
|
_get_root() {
|
||||||
domain=$1
|
domain=$1
|
||||||
i="$(echo "$fulldomain" | tr '.' ' ' | wc -w)"
|
|
||||||
i=$(_math "$i" - 1)
|
|
||||||
|
|
||||||
while true; do
|
d=$(dig soa "$domain" | grep -v ^\; | grep SOA | awk '{print $1}')
|
||||||
h=$(printf "%s" "$domain" | cut -d . -f "$i"-100)
|
if [ -z "${d}" ]; then
|
||||||
if [ -z "$h" ]; then
|
_debug "$domain not found"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
_domain="$h"
|
|
||||||
return 0
|
d=${d%?} # remove last '.'
|
||||||
done
|
|
||||||
_debug "$domain not found"
|
_domain="$d"
|
||||||
return 1
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
_checkKey() {
|
_checkKey() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user