summaryrefslogtreecommitdiff
path: root/pkg/env
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2021-06-02 21:00:26 +0200
committerMatthew Heon <mheon@redhat.com>2021-06-03 13:56:48 -0400
commitf62c6bf6ecd1737afab66e2e79064bf14719d36f (patch)
treebb77a79c7a56f6ee4317350c1147460f0365e3cd /pkg/env
parent4b8ca63039e411fb890df3a4b38b768499f3f012 (diff)
downloadpodman-f62c6bf6ecd1737afab66e2e79064bf14719d36f.tar.gz
podman-f62c6bf6ecd1737afab66e2e79064bf14719d36f.tar.bz2
podman-f62c6bf6ecd1737afab66e2e79064bf14719d36f.zip
add ipv6 nameservers only when the container has ipv6 enabled
The containers /etc/resolv.conf allways preserved the ipv6 nameserves from the host even when the container did not supported ipv6. Check if the cni result contains an ipv6 address or slirp4netns has ipv6 support enabled and only add the ipv6 nameservers when this is the case. The test needs to have an ipv6 nameserver in the hosts /etc/hosts but we should never mess with this file on the host. Therefore the test is skipped when no ipv6 is detected. Fixes #10158 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'pkg/env')
0 files changed, 0 insertions, 0 deletions