2
0
mirror of https://github.com/acmesh-official/acme.sh synced 2025-08-30 22:05:34 +00:00

update _get_root check

This commit is contained in:
Adrian Fedoreanu
2024-03-19 19:41:33 +01:00
parent 2d4b900e33
commit 5e64781d65

View File

@@ -215,8 +215,8 @@ _get_root() {
return 1
fi
_authget "https://1984.hosting/domains/soacheck/?zone=$h&nameserver=ns0.1984.is."
if _contains "$_response" "serial" && ! _contains "$_response" "null"; then
_authget "https://1984.hosting/domains/zonestatus/$h/?cached=no"
if _contains "$_response" '"ok": true'; then
_sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-"$p")
_domain="$h"
return 0
@@ -250,7 +250,6 @@ _authget() {
}
# Truncate huge HTML response
# Echo: Argument list too long
_htmlget() {
export _H1="Cookie: $One984HOSTING_CSRFTOKEN_COOKIE; $One984HOSTING_SESSIONID_COOKIE"
_response=$(_get "$1" | grep "$2")