mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-04-30 01:32:44 +00:00
Merge pull request #5057 from phedoreanu/dev
dns_1984.hosting - update _get_root check
This commit is contained in:
commit
a8f252e45d
@ -211,8 +211,8 @@ _get_root() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_authget "https://1984.hosting/domains/soacheck/?zone=$h&nameserver=ns0.1984.is."
|
_authget "https://1984.hosting/domains/zonestatus/$h/?cached=no"
|
||||||
if _contains "$_response" "serial" && ! _contains "$_response" "null"; then
|
if _contains "$_response" '"ok": true'; then
|
||||||
_sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-"$p")
|
_sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-"$p")
|
||||||
_domain="$h"
|
_domain="$h"
|
||||||
return 0
|
return 0
|
||||||
@ -246,7 +246,6 @@ _authget() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Truncate huge HTML response
|
# Truncate huge HTML response
|
||||||
# Echo: Argument list too long
|
|
||||||
_htmlget() {
|
_htmlget() {
|
||||||
export _H1="Cookie: $One984HOSTING_CSRFTOKEN_COOKIE; $One984HOSTING_SESSIONID_COOKIE"
|
export _H1="Cookie: $One984HOSTING_CSRFTOKEN_COOKIE; $One984HOSTING_SESSIONID_COOKIE"
|
||||||
_response=$(_get "$1" | grep "$2")
|
_response=$(_get "$1" | grep "$2")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user