Skip to content

Commit

Permalink
Merge pull request #5057 from phedoreanu/dev
Browse files Browse the repository at this point in the history
dns_1984.hosting - update _get_root check
  • Loading branch information
Neilpang authored May 28, 2024
2 parents f7e09af + 5e64781 commit a8f252e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dnsapi/dns_1984hosting.sh
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,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
Expand Down Expand Up @@ -246,7 +246,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")
Expand Down

0 comments on commit a8f252e

Please sign in to comment.