mirror of https://github.com/status-im/consul.git
agent: Fixing missing copy of RejoinAfterLeave flag. #110
This commit is contained in:
parent
10c120bf9d
commit
a05e1aee15
|
@ -171,6 +171,9 @@ func (a *Agent) consulConfig() *consul.Config {
|
||||||
if a.config.Bootstrap {
|
if a.config.Bootstrap {
|
||||||
base.Bootstrap = true
|
base.Bootstrap = true
|
||||||
}
|
}
|
||||||
|
if a.config.RejoinAfterLeave {
|
||||||
|
base.RejoinAfterLeave = true
|
||||||
|
}
|
||||||
if a.config.Protocol > 0 {
|
if a.config.Protocol > 0 {
|
||||||
base.ProtocolVersion = uint8(a.config.Protocol)
|
base.ProtocolVersion = uint8(a.config.Protocol)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue