Fix porkbun issues

See gh-3450
This commit is contained in:
Roman Zabaluev 2021-05-30 18:17:39 +03:00 committed by Haarolean
parent 7aa4b8247c
commit 1e5e3353f3

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