Skip to content

Commit a8f252e

Browse files
authored
Merge pull request #5057 from phedoreanu/dev
dns_1984.hosting - update _get_root check
2 parents f7e09af + 5e64781 commit a8f252e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

dnsapi/dns_1984hosting.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ _get_root() {
211211
return 1
212212
fi
213213

214-
_authget "https://1984.hosting/domains/soacheck/?zone=$h&nameserver=ns0.1984.is."
215-
if _contains "$_response" "serial" && ! _contains "$_response" "null"; then
214+
_authget "https://1984.hosting/domains/zonestatus/$h/?cached=no"
215+
if _contains "$_response" '"ok": true'; then
216216
_sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-"$p")
217217
_domain="$h"
218218
return 0
@@ -246,7 +246,6 @@ _authget() {
246246
}
247247

248248
# Truncate huge HTML response
249-
# Echo: Argument list too long
250249
_htmlget() {
251250
export _H1="Cookie: $One984HOSTING_CSRFTOKEN_COOKIE; $One984HOSTING_SESSIONID_COOKIE"
252251
_response=$(_get "$1" | grep "$2")

0 commit comments

Comments
 (0)