Browse Source

fix _get_root() make it start from 1. because we need to support --domain-alias (only version api actual v2)

Vladimir Alexeev 10 months ago
parent
commit
112bfccfd5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dnsapi/dns_selectel.sh

+ 1 - 1
dnsapi/dns_selectel.sh

@@ -267,7 +267,7 @@ _get_root() {
       _err "Error read records of all domains $SL_Ver"
       return 1
     fi
-    i=2
+    i=1
     p=1
     while true; do
       h=$(printf "%s" "$domain" | cut -d . -f "$i"-100)