]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
#2547 fix multiply _service selection
authorSergey Zorin <sergey@zorin.ru>
Mon, 6 Jan 2020 20:42:08 +0000 (23:42 +0300)
committerSergey Zorin <sergey@zorin.ru>
Mon, 6 Jan 2020 20:42:08 +0000 (23:42 +0300)
dnsapi/dns_nic.sh

index 4c3b280f24cb548b8ba9d50fa803cc6ea9f0691c..9dba92c2a64cb751e8b5679226a7a45b6e7aa1d8 100644 (file)
@@ -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"