Browse Source

#2547 fix multiply _service selection

shebang
Sergey Zorin 5 years ago
parent
commit
9666cf680e
  1. 2
      dnsapi/dns_nic.sh

2
dnsapi/dns_nic.sh

@ -168,7 +168,7 @@ _get_root() {
if _contains "$_all_domains" "^$h$"; then
_sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-$p)
_domain=$h
_service=$(printf "%s" "$response" | grep "$_domain" | sed -r "s/.*service=\"(.*)\".*$/\1/")
_service=$(printf "%s" "$response" | grep -F "idn-name=\"$_domain\"" | sed -r "s/.*service=\"(.*)\".*$/\1/")
return 0
fi
p="$i"

Loading…
Cancel
Save