consul: Remove the RaftBindAddr
This commit is contained in:
parent
a5d001034e
commit
5ab00f34ee
|
@ -10,9 +10,8 @@ import (
|
||||||
|
|
||||||
const (
|
const (
|
||||||
DefaultRPCAddr = "0.0.0.0:8300"
|
DefaultRPCAddr = "0.0.0.0:8300"
|
||||||
DefaultRaftAddr = "0.0.0.0:8301"
|
DefaultLANSerfPort = 8301
|
||||||
DefaultLANSerfPort = 8302
|
DefaultWANSerfPort = 8302
|
||||||
DefaultWANSerfPort = 8303
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Config is used to configure the server
|
// 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.
|
// Node name is the name we use to advertise. Defaults to hostname.
|
||||||
NodeName string
|
NodeName string
|
||||||
|
|
||||||
// Bind address for Raft (TCP)
|
|
||||||
RaftBindAddr string
|
|
||||||
|
|
||||||
// RaftConfig is the configuration used for Raft in the local DC
|
// RaftConfig is the configuration used for Raft in the local DC
|
||||||
RaftConfig *raft.Config
|
RaftConfig *raft.Config
|
||||||
|
|
||||||
|
@ -57,7 +53,6 @@ func DefaultConfig() *Config {
|
||||||
conf := &Config{
|
conf := &Config{
|
||||||
Datacenter: "dc1",
|
Datacenter: "dc1",
|
||||||
NodeName: hostname,
|
NodeName: hostname,
|
||||||
RaftBindAddr: DefaultRaftAddr,
|
|
||||||
RPCAddr: DefaultRPCAddr,
|
RPCAddr: DefaultRPCAddr,
|
||||||
RaftConfig: raft.DefaultConfig(),
|
RaftConfig: raft.DefaultConfig(),
|
||||||
SerfLANConfig: serf.DefaultConfig(),
|
SerfLANConfig: serf.DefaultConfig(),
|
||||||
|
|
Loading…
Reference in New Issue