From f1d7e0ab23caacafe390fe9ed2c1e9c8ec28af1e Mon Sep 17 00:00:00 2001 From: Stanislav Koleda Date: Tue, 5 Mar 2024 22:10:39 +0300 Subject: [PATCH] Update dns_regru.sh Fix incorrect root select (test.com.ru and subtest.com.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..9c8c4d68 100644 --- a/dnsapi/dns_regru.sh +++ b/dnsapi/dns_regru.sh @@ -93,8 +93,8 @@ _get_root() { for ITEM in ${domains_list}; do IDN_ITEM=${ITEM} - case "${domain}" in - *${IDN_ITEM}*) + case ".${domain}" in + *.${IDN_ITEM}*) _domain="$(_idn "${ITEM}")" _debug _domain "${_domain}" return 0