From a2eb514206691b5c05563bc76d69a2d62281afaf Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Mon, 9 Dec 2013 14:30:16 -0800 Subject: [PATCH] consul: gossip role includes rpc addr --- consul/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consul/server.go b/consul/server.go index b632d07663..550f6f5257 100644 --- a/consul/server.go +++ b/consul/server.go @@ -145,7 +145,7 @@ func (s *Server) ensurePath(path string, dir bool) error { // setupSerf is used to setup and initialize a Serf func (s *Server) setupSerf(conf *serf.Config, ch chan serf.Event, path string) (*serf.Serf, error) { conf.NodeName = s.config.NodeName - conf.Role = fmt.Sprintf("consul:%s", s.config.Datacenter) + conf.Role = fmt.Sprintf("consul:%s:%s", s.config.Datacenter, s.rpcListener.Addr().String()) conf.MemberlistConfig.LogOutput = s.config.LogOutput conf.LogOutput = s.config.LogOutput conf.EventCh = ch