From 5ab00f34ee99c4340da1af312d471aab6f1c8b68 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Mon, 9 Dec 2013 14:22:23 -0800 Subject: [PATCH] consul: Remove the RaftBindAddr --- consul/config.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/consul/config.go b/consul/config.go index 5ee703200..e33175025 100644 --- a/consul/config.go +++ b/consul/config.go @@ -10,9 +10,8 @@ import ( const ( DefaultRPCAddr = "0.0.0.0:8300" - DefaultRaftAddr = "0.0.0.0:8301" - DefaultLANSerfPort = 8302 - DefaultWANSerfPort = 8303 + DefaultLANSerfPort = 8301 + DefaultWANSerfPort = 8302 ) // Config is used to configure the server @@ -26,9 +25,6 @@ type Config struct { // Node name is the name we use to advertise. Defaults to hostname. NodeName string - // Bind address for Raft (TCP) - RaftBindAddr string - // RaftConfig is the configuration used for Raft in the local DC RaftConfig *raft.Config @@ -57,7 +53,6 @@ func DefaultConfig() *Config { conf := &Config{ Datacenter: "dc1", NodeName: hostname, - RaftBindAddr: DefaultRaftAddr, RPCAddr: DefaultRPCAddr, RaftConfig: raft.DefaultConfig(), SerfLANConfig: serf.DefaultConfig(),