Apply context changes to the client.
Signed-off-by: David Calavera <david.calavera@gmail.com> Upstream-commit: fe53be4e1785ab4d8cadf246e5f2de419f337adc Component: engine
This commit is contained in:
@ -30,7 +30,7 @@ func NewClient(addr string, tlsConfig tlsconfig.Options) (*Client, error) {
|
||||
tr.TLSClientConfig = c
|
||||
|
||||
protoAndAddr := strings.Split(addr, "://")
|
||||
sockets.ConfigureTCPTransport(tr, protoAndAddr[0], protoAndAddr[1])
|
||||
sockets.ConfigureTransport(tr, protoAndAddr[0], protoAndAddr[1])
|
||||
|
||||
scheme := protoAndAddr[0]
|
||||
if scheme != "https" {
|
||||
|
||||
Reference in New Issue
Block a user