diff --git a/command/agent/agent.go b/command/agent/agent.go index 77733bdc89..62784f8d68 100644 --- a/command/agent/agent.go +++ b/command/agent/agent.go @@ -189,6 +189,7 @@ func (a *Agent) consulConfig() *consul.Config { base.CAFile = a.config.CAFile base.CertFile = a.config.CertFile base.KeyFile = a.config.KeyFile + base.ServerName = a.config.ServerName // Setup the ServerUp callback base.ServerUp = a.state.ConsulServerUp