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 23b9c96169
commit 419447d9f7
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 { for _, node := range nodes {
// Avoid duplicate entries, possible if a node has // Avoid duplicate entries, possible if a node has
// the same service the same port, etc. // 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 { if _, ok := handled[tuple]; ok {
continue continue
} }