]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
Merge pull request #3529 from Haarolean/bugfix/porkbun-fixes
authorneil <github@neilpang.com>
Tue, 1 Jun 2021 13:29:14 +0000 (21:29 +0800)
committerGitHub <noreply@github.com>
Tue, 1 Jun 2021 13:29:14 +0000 (21:29 +0800)
Porkbun DNS API fixes

dnsapi/dns_porkbun.sh

index 90caec4a5d52ef047af035c7b4a0f45c5d257ebd..ad4455b692c00854a3807fdc753dc3e30d8f3dae 100644 (file)
@@ -110,8 +110,8 @@ _get_root() {
 
     if _porkbun_rest POST "dns/retrieve/$h"; then
       if _contains "$response" "\"status\":\"SUCCESS\""; then
-        _sub_domain="$(echo "$fulldomain" | sed "s/\\.$_domain\$//")"
         _domain=$h
+        _sub_domain="$(echo "$fulldomain" | sed "s/\\.$_domain\$//")"
         return 0
       else
         _debug "Go to next level of $_domain"