summaryrefslogtreecommitdiff
path: root/libpod/container_internal_linux.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-06-16 10:10:17 -0400
committerGitHub <noreply@github.com>2021-06-16 10:10:17 -0400
commit85bf412bb5843adba526ac264dd4d07a51c8a422 (patch)
tree2b62941a69065e5e97ffb1be03bbb02162672a24 /libpod/container_internal_linux.go
parent1c71c1a5404cd562381c27defb9bdbacf9f7086b (diff)
parent9c81b8cf7219e7e7507e41e867295ff158028a0a (diff)
downloadpodman-85bf412bb5843adba526ac264dd4d07a51c8a422.tar.gz
podman-85bf412bb5843adba526ac264dd4d07a51c8a422.tar.bz2
podman-85bf412bb5843adba526ac264dd4d07a51c8a422.zip
Merge pull request #10684 from Luap99/slirp-hosts
add correct slirp ip to /etc/hosts
Diffstat (limited to 'libpod/container_internal_linux.go')
-rw-r--r--libpod/container_internal_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_internal_linux.go b/libpod/container_internal_linux.go
index ea52d7ba0..c127cd3e6 100644
--- a/libpod/container_internal_linux.go
+++ b/libpod/container_internal_linux.go
@@ -1816,7 +1816,7 @@ func (c *Container) getHosts() string {
if c.Hostname() != "" {
if c.config.NetMode.IsSlirp4netns() {
// When using slirp4netns, the interface gets a static IP
- slirp4netnsIP, err := GetSlirp4netnsGateway(c.slirp4netnsSubnet)
+ slirp4netnsIP, err := GetSlirp4netnsIP(c.slirp4netnsSubnet)
if err != nil {
logrus.Warn("failed to determine slirp4netnsIP: ", err.Error())
} else {