mirror of
https://github.com/status-im/consul.git
synced 2025-01-22 03:29:43 +00:00
remove spaces
This commit is contained in:
parent
ce85d2eada
commit
55599d0b41
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user