agent: Fixing missing copy of RejoinAfterLeave flag. #110

This commit is contained in:
Armon Dadgar 2014-06-18 10:32:19 -07:00
parent 10c120bf9d
commit a05e1aee15
1 changed files with 3 additions and 0 deletions

View File

@ -171,6 +171,9 @@ func (a *Agent) consulConfig() *consul.Config {
if a.config.Bootstrap {
base.Bootstrap = true
}
if a.config.RejoinAfterLeave {
base.RejoinAfterLeave = true
}
if a.config.Protocol > 0 {
base.ProtocolVersion = uint8(a.config.Protocol)
}