mirror of
https://github.com/clearlinux/docker.git
synced 2026-08-26 09:36:04 +00:00
+2
-2
@@ -144,8 +144,8 @@ func NewDockerCli(in io.ReadCloser, out, err io.Writer, key libtrust.PrivateKey,
|
||||
if proto == "unix" {
|
||||
// no need in compressing for local communications
|
||||
tr.DisableCompression = true
|
||||
tr.Dial = func(network, addr string) (net.Conn, error) {
|
||||
return net.DialTimeout("unix", addr, 32*time.Second)
|
||||
tr.Dial = func(dial_network, dial_addr string) (net.Conn, error) {
|
||||
return net.DialTimeout(proto, addr, 32*time.Second)
|
||||
}
|
||||
} else {
|
||||
tr.Dial = (&net.Dialer{Timeout: 32 * time.Second}).Dial
|
||||
|
||||
Reference in New Issue
Block a user