summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-03-14 09:43:29 -0700
committerGitHub <noreply@github.com>2019-03-14 09:43:29 -0700
commit38d2b952fb5e285183795e2b2533e83bfdf96615 (patch)
tree3cd8c2ace1cf790027388398a53e5c0bb1e87135 /libpod
parentb625c47ae5170e09d354b6e4e3d40445642102c9 (diff)
parent473f28aa0db7b2701016b35d15d52c64d23bc841 (diff)
downloadpodman-38d2b952fb5e285183795e2b2533e83bfdf96615.tar.gz
podman-38d2b952fb5e285183795e2b2533e83bfdf96615.tar.bz2
podman-38d2b952fb5e285183795e2b2533e83bfdf96615.zip
Merge pull request #2644 from giuseppe/slirp-disable-lo
slirp4netns: use --disable-host-loopback
Diffstat (limited to 'libpod')
-rw-r--r--libpod/networking_linux.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpod/networking_linux.go b/libpod/networking_linux.go
index b7f1c2f1b..809584804 100644
--- a/libpod/networking_linux.go
+++ b/libpod/networking_linux.go
@@ -162,9 +162,9 @@ func (r *Runtime) setupRootlessNetNS(ctr *Container) (err error) {
var cmd *exec.Cmd
if havePortMapping {
// if we need ports to be mapped from the host, create a API socket to use for communicating with slirp4netns.
- cmd = exec.Command(path, "--mtu", "65520", "-c", "-e", "3", "-r", "4", "--api-socket", apiSocket, fmt.Sprintf("%d", ctr.state.PID), "tap0")
+ cmd = exec.Command(path, "--disable-host-loopback", "--mtu", "65520", "-c", "-e", "3", "-r", "4", "--api-socket", apiSocket, fmt.Sprintf("%d", ctr.state.PID), "tap0")
} else {
- cmd = exec.Command(path, "--mtu", "65520", "-c", "-e", "3", "-r", "4", fmt.Sprintf("%d", ctr.state.PID), "tap0")
+ cmd = exec.Command(path, "--disable-host-loopback", "--mtu", "65520", "-c", "-e", "3", "-r", "4", fmt.Sprintf("%d", ctr.state.PID), "tap0")
}
cmd.SysProcAttr = &syscall.SysProcAttr{