This commit is contained in:
Matthias Radestock committed 2015-06-22 10:38:59 +01:00
1 parent 84e5659090
commit e276f3e026
1 file changed
+8 -8
+8 -8
View File
@@ -24,14 +24,6 @@ var (
execCreateRegexp = regexp.MustCompile("^(/v[0-9\\.]*)?/containers/[^/]*/exec$")
)
type Proxy struct {
Config
dial func() (net.Conn, error)
client *docker.Client
dockerBridgeIP string
}
type Config struct {
DockerAddr string
ListenAddr string
@@ -42,6 +34,14 @@ type Config struct {
WithoutDNS bool
}
type Proxy struct {
Config
dial func() (net.Conn, error)
client *docker.Client
dockerBridgeIP string
}
func NewProxy(c Config) (*Proxy, error) {
u, err := url.Parse(c.DockerAddr)
if err != nil {