Explorar el Código

Fix porkbun issues

See gh-3450
Roman Zabaluev hace 4 años
padre
commit
1e5e3353f3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      dnsapi/dns_porkbun.sh

+ 1 - 1
dnsapi/dns_porkbun.sh

@@ -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"