]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
Update dns_bunny.sh
authorneil <github@neilpang.com>
Wed, 7 Sep 2022 10:15:21 +0000 (18:15 +0800)
committerGitHub <noreply@github.com>
Wed, 7 Sep 2022 10:15:21 +0000 (18:15 +0800)
`i` should start with `1`.
In dns alias mode, the fulldomain doesn't have a `_acme-challenge` prefix.

dnsapi/dns_bunny.sh

index 718efe02dc1a6cafcafb7ea7e9da33d365b3e260..a9b1ea5a14e73488ac5f5e80383a02dc68dda439 100644 (file)
@@ -198,9 +198,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")