summaryrefslogtreecommitdiff
path: root/vendor/github.com/fsouza/go-dockerclient/client_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/fsouza/go-dockerclient/client_windows.go')
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/client_windows.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/vendor/github.com/fsouza/go-dockerclient/client_windows.go b/vendor/github.com/fsouza/go-dockerclient/client_windows.go
index 8e7b457d7..63d97ec65 100644
--- a/vendor/github.com/fsouza/go-dockerclient/client_windows.go
+++ b/vendor/github.com/fsouza/go-dockerclient/client_windows.go
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build windows
-
package docker
import (
@@ -12,10 +10,13 @@ import (
"net/http"
"time"
- "github.com/Microsoft/go-winio"
+ winio "github.com/Microsoft/go-winio"
)
-const namedPipeConnectTimeout = 2 * time.Second
+const (
+ defaultHost = "npipe:////./pipe/docker_engine"
+ namedPipeConnectTimeout = 2 * time.Second
+)
type pipeDialer struct {
dialFunc func(network, addr string) (net.Conn, error)
@@ -36,7 +37,7 @@ func (c *Client) initializeNativeClient(trFunc func() *http.Transport) {
return winio.DialPipe(namedPipePath, &timeout)
}
tr := trFunc()
- tr.Dial = dialFunc
+ tr.Proxy = nil
tr.DialContext = func(ctx context.Context, network, addr string) (net.Conn, error) {
return dialFunc(network, addr)
}