From f33a9c1d2dc72587fb4f93cd01283fb7e35a450b Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Fri, 27 Dec 2013 14:50:02 -0800 Subject: [PATCH] Serf API changes --- command/agent/agent.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command/agent/agent.go b/command/agent/agent.go index ae60fe9255..1621149bc8 100644 --- a/command/agent/agent.go +++ b/command/agent/agent.go @@ -103,10 +103,10 @@ func (a *Agent) consulConfig() *consul.Config { base.SerfWANConfig.MemberlistConfig.BindAddr = a.config.SerfBindAddr } if a.config.SerfLanPort != 0 { - base.SerfLANConfig.MemberlistConfig.Port = a.config.SerfLanPort + base.SerfLANConfig.MemberlistConfig.BindPort = a.config.SerfLanPort } if a.config.SerfWanPort != 0 { - base.SerfWANConfig.MemberlistConfig.Port = a.config.SerfWanPort + base.SerfWANConfig.MemberlistConfig.BindPort = a.config.SerfWanPort } if a.config.ServerAddr != "" { base.RPCAddr = a.config.ServerAddr