Skip to content

Commit 5e64781

Browse files
committed
update _get_root check
1 parent 2d4b900 commit 5e64781

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
@@ -215,8 +215,8 @@ _get_root() {
215215
return 1
216216
fi
217217

218-
_authget "https://1984.hosting/domains/soacheck/?zone=$h&nameserver=ns0.1984.is."
219-
if _contains "$_response" "serial" && ! _contains "$_response" "null"; then
218+
_authget "https://1984.hosting/domains/zonestatus/$h/?cached=no"
219+
if _contains "$_response" '"ok": true'; then
220220
_sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-"$p")
221221
_domain="$h"
222222
return 0
@@ -250,7 +250,6 @@ _authget() {
250250
}
251251

252252
# Truncate huge HTML response
253-
# Echo: Argument list too long
254253
_htmlget() {
255254
export _H1="Cookie: $One984HOSTING_CSRFTOKEN_COOKIE; $One984HOSTING_SESSIONID_COOKIE"
256255
_response=$(_get "$1" | grep "$2")

0 commit comments

Comments
 (0)