cosmetic
This commit is contained in:
1 parent
84e5659090
commit
e276f3e026
1 file changed
+8
-8
+8
-8
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user