aboutsummaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2021-01-21 14:59:39 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2021-01-22 08:08:26 +0100
commit5e65f0ba30f3fca73f8c207825632afef08378c1 (patch)
treee9236d523b5c333d97125c0c8071fe751f90996f /libpod
parent37319dec1771aaa9764c81359f439e862f45d8e1 (diff)
downloadpodman-5e65f0ba30f3fca73f8c207825632afef08378c1.tar.gz
podman-5e65f0ba30f3fca73f8c207825632afef08378c1.tar.bz2
podman-5e65f0ba30f3fca73f8c207825632afef08378c1.zip
rootlessport: set source IP to slirp4netns device
set the source IP to the slirp4netns address instead of 127.0.0.1 when using rootlesskit. Closes: https://github.com/containers/podman/issues/5138 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'libpod')
-rw-r--r--libpod/networking_linux.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpod/networking_linux.go b/libpod/networking_linux.go
index addf1814c..6f56d2f8f 100644
--- a/libpod/networking_linux.go
+++ b/libpod/networking_linux.go
@@ -547,6 +547,7 @@ func (r *Runtime) setupRootlessPortMappingViaRLK(ctr *Container, netnsPath strin
ExitFD: 3,
ReadyFD: 4,
TmpDir: ctr.runtime.config.Engine.TmpDir,
+ ChildIP: "10.0.2.100",
}
cfgJSON, err := json.Marshal(cfg)
if err != nil {