remove spaces

This commit is contained in:
Konstantine 2021-10-18 20:55:54 +03:00 committed by Dhia Ayachi
parent be14f6da90
commit 2f9ee8e558
1 changed files with 0 additions and 2 deletions

View File

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