From a485eb84470e78718a01c4faad54e2215a627a2f Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Mon, 11 May 2015 15:16:13 -0700 Subject: [PATCH] agent: copy config into consul config --- command/agent/agent.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/command/agent/agent.go b/command/agent/agent.go index eb19875dd6..cfd025e0eb 100644 --- a/command/agent/agent.go +++ b/command/agent/agent.go @@ -288,10 +288,12 @@ func (a *Agent) consulConfig() *consul.Config { // Copy the TLS configuration base.VerifyIncoming = a.config.VerifyIncoming base.VerifyOutgoing = a.config.VerifyOutgoing + base.VerifyServerHostname = a.config.VerifyServerHostname base.CAFile = a.config.CAFile base.CertFile = a.config.CertFile base.KeyFile = a.config.KeyFile base.ServerName = a.config.ServerName + base.Domain = a.config.Domain // Setup the ServerUp callback base.ServerUp = a.state.ConsulServerUp