diff --git a/registry/consul_registry.go b/registry/consul_registry.go index 448616a1..a11c496b 100644 --- a/registry/consul_registry.go +++ b/registry/consul_registry.go @@ -81,6 +81,9 @@ func newConsulRegistry(opts ...Option) Registry { if options.Secure || options.TLSConfig != nil { config.Scheme = "https" // We're going to support InsecureSkipVerify + if config.HttpClient == nil { + config.HttpClient = new(http.Client) + } config.HttpClient.Transport = newTransport(options.TLSConfig) }