Skip to content

Commit

Permalink
vpnkit-userland-proxy: don't bind a local IP in the VM by default
Browse files Browse the repository at this point in the history
This avoid clashes between ports bound inside the VM and ports bound
outside.

Ref [docker/for-mac#3522]
Ref [docker/compose-on-kubernetes#70]

Signed-off-by: David Scott <dave.scott@docker.com>
  • Loading branch information
djs55 committed Feb 13, 2019
1 parent d0011a3 commit 1791efc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/cmd/vpnkit-userland-proxy/proxy.go
Expand Up @@ -53,7 +53,7 @@ func parseHostContainerAddrs() (host net.Addr, port int, container net.Addr, loc
containerIP = flag.String("container-ip", "", "container ip")
containerPort = flag.Int("container-port", -1, "container port")
interactive = flag.Bool("i", false, "print success/failure to stdout/stderr")
noLocalIP = flag.Bool("no-local-ip", false, "bind only on the Host, not in the VM")
noLocalIP = flag.Bool("no-local-ip", true, "bind only on the Host, not in the VM")
)

flag.Parse()
Expand Down

0 comments on commit 1791efc

Please sign in to comment.