mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Apply context changes to the client.
Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
parent
d8355ead9e
commit
fe53be4e17
17 changed files with 72 additions and 32 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…
Add table
Add a link
Reference in a new issue