Skip to content

Commit

Permalink
fix unix socket
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Vieux <[email protected]>
  • Loading branch information
vieux committed Nov 12, 2014
1 parent 4b4ad26 commit 6ca144e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/client/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6ca144e

Please sign in to comment.