neil
1 month ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
2 additions and
2 deletions
-
dnsapi/dns_fornex.sh
-
dnsapi/dns_zoneedit.sh
|
|
@ -88,7 +88,7 @@ _get_root() { |
|
|
|
|
|
|
|
i=1 |
|
|
|
while true; do |
|
|
|
h=$(printf "%s" "$domain" | cut -d . -f $i-100) |
|
|
|
h=$(printf "%s" "$domain" | cut -d . -f "$i"-100) |
|
|
|
_debug h "$h" |
|
|
|
if [ -z "$h" ]; then |
|
|
|
#not valid |
|
|
|
|
|
@ -100,7 +100,7 @@ _zoneedit_api() { |
|
|
|
|
|
|
|
# Execute request |
|
|
|
i=3 # Tries |
|
|
|
while [ $i -gt 0 ]; do |
|
|
|
while [ "$i" -gt 0 ]; do |
|
|
|
i=$(_math "$i" - 1) |
|
|
|
|
|
|
|
if ! response=$(_get "$geturl"); then |
|
|
|