From 419447d9f74277bbc17e3f2caa9ef5c304ae48c5 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Thu, 8 Jan 2015 10:47:41 -0800 Subject: [PATCH] agent: Fix de-duplication of SRV with service address --- command/agent/dns.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/agent/dns.go b/command/agent/dns.go index f5a7ca4f06..1b270bae7d 100644 --- a/command/agent/dns.go +++ b/command/agent/dns.go @@ -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 }