|
@@ -11,7 +11,7 @@ import (
|
|
"time"
|
|
"time"
|
|
|
|
|
|
"github.com/docker/docker/api/types"
|
|
"github.com/docker/docker/api/types"
|
|
- "github.com/docker/docker/client/transport"
|
|
|
|
|
|
+ "github.com/docker/docker/pkg/tlsconfig"
|
|
"github.com/docker/go-connections/sockets"
|
|
"github.com/docker/go-connections/sockets"
|
|
"golang.org/x/net/context"
|
|
"golang.org/x/net/context"
|
|
)
|
|
)
|
|
@@ -136,7 +136,7 @@ func tlsDialWithDialer(dialer *net.Dialer, network, addr string, config *tls.Con
|
|
// from the hostname we're connecting to.
|
|
// from the hostname we're connecting to.
|
|
if config.ServerName == "" {
|
|
if config.ServerName == "" {
|
|
// Make a copy to avoid polluting argument or default.
|
|
// Make a copy to avoid polluting argument or default.
|
|
- config = transport.TLSConfigClone(config)
|
|
|
|
|
|
+ config = tlsconfig.Clone(config)
|
|
config.ServerName = hostname
|
|
config.ServerName = hostname
|
|
}
|
|
}
|
|
|
|
|