From a170097156125d44e07cd6005ac0b435e03ef80f Mon Sep 17 00:00:00 2001 From: Vitaly Kireev Date: Sat, 17 Sep 2022 10:56:12 +0300 Subject: [PATCH] Revert "Unable to add TXT record to IDN domain on reg.ru" --- dnsapi/dns_regru.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dnsapi/dns_regru.sh b/dnsapi/dns_regru.sh index 8ff380f0..2a1ebaa5 100644 --- a/dnsapi/dns_regru.sh +++ b/dnsapi/dns_regru.sh @@ -92,10 +92,10 @@ _get_root() { domains_list=$(echo "${response}" | grep dname | sed -r "s/.*dname=\"([^\"]+)\".*/\\1/g") for ITEM in ${domains_list}; do - IDN_ITEM=${ITEM} + IDN_ITEM="$(_idn "${ITEM}")" case "${domain}" in *${IDN_ITEM}*) - _domain="$(_idn "${ITEM}")" + _domain=${IDN_ITEM} _debug _domain "${_domain}" return 0 ;;