From 2f9ee8e558da647fd3fe2dfd54ff5baaacd8d7c1 Mon Sep 17 00:00:00 2001 From: Konstantine Date: Mon, 18 Oct 2021 20:55:54 +0300 Subject: [PATCH] remove spaces --- agent/dns.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/agent/dns.go b/agent/dns.go index b836c7eec..af80a7b2f 100644 --- a/agent/dns.go +++ b/agent/dns.go @@ -352,7 +352,6 @@ func serviceIngressDNSName(service, datacenter, domain string, entMeta *structs. // respects DNS case insensitivity func (d *DNSServer) getResponseDomain(questionName string) string { labels := dns.SplitDomainName(questionName) - domain := d.domain for i := len(labels) - 1; i >= 0; i-- { currentSuffix := strings.Join(labels[i:], ".") + "." @@ -360,7 +359,6 @@ func (d *DNSServer) getResponseDomain(questionName string) string { domain = currentSuffix } } - return domain }