Merge pull request #3529 from Haarolean/bugfix/porkbun-fixes

Porkbun DNS API fixes
This commit is contained in:
neil 2021-06-01 21:29:14 +08:00 committed by GitHub
commit 495ba01d8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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"