mirror of https://github.com/docker/docs.git
fix unix socket
Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
parent
4b4ad26b97
commit
6ca144ef3d
|
@ -144,8 +144,8 @@ func NewDockerCli(in io.ReadCloser, out, err io.Writer, key libtrust.PrivateKey,
|
||||||
if proto == "unix" {
|
if proto == "unix" {
|
||||||
// no need in compressing for local communications
|
// no need in compressing for local communications
|
||||||
tr.DisableCompression = true
|
tr.DisableCompression = true
|
||||||
tr.Dial = func(network, addr string) (net.Conn, error) {
|
tr.Dial = func(dial_network, dial_addr string) (net.Conn, error) {
|
||||||
return net.DialTimeout("unix", addr, 32*time.Second)
|
return net.DialTimeout(proto, addr, 32*time.Second)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
tr.Dial = (&net.Dialer{Timeout: 32 * time.Second}).Dial
|
tr.Dial = (&net.Dialer{Timeout: 32 * time.Second}).Dial
|
||||||
|
|
Loading…
Reference in New Issue