diff --git a/command/agent/agent.go b/command/agent/agent.go index 65654ee04b78..472adf53da54 100644 --- a/command/agent/agent.go +++ b/command/agent/agent.go @@ -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) }