Apply context changes to the client.
Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
parent
80ef4bfbc0
commit
52470a41b8
1 changed files with 1 additions and 1 deletions
|
@ -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" {
|
||||
|
|
Loading…
Reference in a new issue