]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
'i' should start with 1
authorShane Bishop <shanebishop@ewww.io>
Wed, 7 Sep 2022 19:42:30 +0000 (13:42 -0600)
committerShane Bishop <shanebishop@ewww.io>
Wed, 7 Sep 2022 19:42:30 +0000 (13:42 -0600)
Since domain alias mode won't have the '_acme-challenge' prefix.

dnsapi/dns_dgon.sh

index ac14da4861784400fde6ad3d9b6259f342257d8f..259f4d39e45dd7c9b2d86a69f1638e516da2da50 100755 (executable)
@@ -205,9 +205,7 @@ _get_base_domain() {
     fi
     _debug2 domain_list "$domain_list"
 
-    ## for each shortening of our $fulldomain, check if it exists in the $domain_list
-    ## can never start on 1 (aka whole $fulldomain) as $fulldomain starts with "_acme-challenge"
-    i=2
+    i=1
     while [ $i -gt 0 ]; do
       ## get next longest domain
       _domain=$(printf "%s" "$fulldomain" | cut -d . -f "$i"-"$MAX_DOM")