Skip to content
Permalink
Browse files

fix punycode domain

  • Loading branch information...
neilpang
neilpang committed May 8, 2019
1 parent 2b765fd commit 11ecbd27be9fd92143c05ed22294d7059284419f
Showing with 1 addition and 1 deletion.
  1. +1 −1 dnsapi/dns_cf.sh
@@ -161,7 +161,7 @@ _get_root() {
return 1
fi

if _contains "$response" "\"name\":\"$h\"" >/dev/null; then
if _contains "$response" "\"name\":\"$h\"" || _contains "$response" '"total_count":1'; then
_domain_id=$(echo "$response" | _egrep_o "\[.\"id\":\"[^\"]*\"" | _head_n 1 | cut -d : -f 2 | tr -d \")
if [ "$_domain_id" ]; then
_sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-$p)

0 comments on commit 11ecbd2

Please sign in to comment.
You can’t perform that action at this time.