Browse Source
Merge pull request #5187 from rwese/improve-dns_anx-performance
improve performance and memory usage for dns_anx
pull/5284/head
neil
3 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
2 deletions
-
dnsapi/dns_anx.sh
|
|
@ -130,8 +130,6 @@ _get_root() { |
|
|
|
i=1 |
|
|
|
p=1 |
|
|
|
|
|
|
|
_anx_rest GET "zone.json" |
|
|
|
|
|
|
|
while true; do |
|
|
|
h=$(printf "%s" "$domain" | cut -d . -f $i-100) |
|
|
|
_debug h "$h" |
|
|
@ -140,6 +138,7 @@ _get_root() { |
|
|
|
return 1 |
|
|
|
fi |
|
|
|
|
|
|
|
_anx_rest GET "zone.json/${h}" |
|
|
|
if _contains "$response" "\"name\":\"$h\""; then |
|
|
|
_sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-$p) |
|
|
|
_domain=$h |
|
|
|