diff --git a/command/agent/agent.go b/command/agent/agent.go index 8080591e6..967740ce0 100644 --- a/command/agent/agent.go +++ b/command/agent/agent.go @@ -691,7 +691,7 @@ func (a *Agent) setupConsul(consulConfig *config.ConsulConfig) error { } // Determine version for TLSSkipVerify - if self, err := client.Agent().Self(); err != nil { + if self, err := client.Agent().Self(); err == nil { a.consulSupportsTLSSkipVerify = consulSupportsTLSSkipVerify(self) }