From 1952083354d8b25de27a889d31274f570a018a84 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 eb19875dd..cfd025e0e 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