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$")
|
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 {
|
type Config struct {
|
||||||
DockerAddr string
|
DockerAddr string
|
||||||
ListenAddr string
|
ListenAddr string
|
||||||
@@ -42,6 +34,14 @@ type Config struct {
|
|||||||
WithoutDNS bool
|
WithoutDNS bool
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Proxy struct {
|
||||||
|
Config
|
||||||
|
|
||||||
|
dial func() (net.Conn, error)
|
||||||
|
client *docker.Client
|
||||||
|
dockerBridgeIP string
|
||||||
|
}
|
||||||
|
|
||||||
func NewProxy(c Config) (*Proxy, error) {
|
func NewProxy(c Config) (*Proxy, error) {
|
||||||
u, err := url.Parse(c.DockerAddr)
|
u, err := url.Parse(c.DockerAddr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in new issue
Block a user