Update dns_regru.sh

Fix incorrect root select (test.com.ru and subtest.com.ru)
This commit is contained in:
Stanislav Koleda 2024-03-05 22:10:39 +03:00 committed by GitHub
parent 6e14a073ff
commit f1d7e0ab23
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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