mirror of
https://github.com/go-micro/go-micro.git
synced 2025-08-10 21:52:01 +02:00
If secure or tlsconfig not nil then secure
This commit is contained in:
@@ -121,7 +121,7 @@ func newConsulRegistry(addrs []string, opts ...Option) Registry {
|
||||
}
|
||||
|
||||
// requires secure connection?
|
||||
if opt.Secure {
|
||||
if opt.Secure || opt.TLSConfig != nil {
|
||||
config.Scheme = "https"
|
||||
// We're going to support InsecureSkipVerify
|
||||
config.HttpClient.Transport = newTransport(opt.TLSConfig)
|
||||
|
Reference in New Issue
Block a user