Skip checks with TLSSkipVerify if it's unsupported

Fixes #2218
This commit is contained in:
Michael Schurter
2017-04-19 12:18:06 -07:00
parent 7c67166510
commit 4cf34edb29
4 changed files with 75 additions and 21 deletions

View File

@@ -699,7 +699,7 @@ func (a *Agent) setupConsul(consulConfig *config.ConsulConfig) error {
a.consulCatalog = client.Catalog()
// Create Consul Service client for service advertisement and checks.
a.consulService = consul.NewServiceClient(client.Agent(), a.logger)
a.consulService = consul.NewServiceClient(client.Agent(), a.consulSupportsTLSSkipVerify, a.logger)
go a.consulService.Run()
return nil
}