agent: Fix de-duplication of SRV with service address

This commit is contained in:
Armon Dadgar 2015-01-08 10:47:41 -08:00
parent 957fa1f5ec
commit 0164de5f44
1 changed files with 1 additions and 1 deletions

View File

@ -607,7 +607,7 @@ func (d *DNSServer) serviceSRVRecords(dc string, nodes structs.CheckServiceNodes
for _, node := range nodes {
// Avoid duplicate entries, possible if a node has
// the same service the same port, etc.
tuple := fmt.Sprintf("%s:%d", node.Node.Node, node.Service.Port)
tuple := fmt.Sprintf("%s:%s:%d", node.Node.Node, node.Service.Address, node.Service.Port)
if _, ok := handled[tuple]; ok {
continue
}