diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-08-18 17:21:09 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-18 17:21:09 +0000 |
commit | d07b8c82278c0bfcf717cdb7e3908cb984a3cdcc (patch) | |
tree | 2fa51f0af43711c667e916c81a47e961e81ffc2c /libpod/networking_unsupported.go | |
parent | 2d245e595a02debdc6129ec28014ff780e2553d1 (diff) | |
parent | 054d64710736250c4d238e159884c1588eb7218a (diff) | |
download | podman-d07b8c82278c0bfcf717cdb7e3908cb984a3cdcc.tar.gz podman-d07b8c82278c0bfcf717cdb7e3908cb984a3cdcc.tar.bz2 podman-d07b8c82278c0bfcf717cdb7e3908cb984a3cdcc.zip |
Merge pull request #15371 from dfr/freebsd-conmon
libpod: Add FreeBSD support for ConmonOCIRuntime
Diffstat (limited to 'libpod/networking_unsupported.go')
-rw-r--r-- | libpod/networking_unsupported.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libpod/networking_unsupported.go b/libpod/networking_unsupported.go index 227b512cd..76ffabb5e 100644 --- a/libpod/networking_unsupported.go +++ b/libpod/networking_unsupported.go @@ -77,3 +77,10 @@ func (r *RootlessNetNS) Cleanup(runtime *Runtime) error { func (r *Runtime) GetRootlessNetNs(new bool) (*RootlessNetNS, error) { return nil, errors.New("not implemented (*Runtime) GetRootlessNetNs") } + +// convertPortMappings will remove the HostIP part from the ports when running inside podman machine. +// This is need because a HostIP of 127.0.0.1 would now allow the gvproxy forwarder to reach to open ports. +// For machine the HostIP must only be used by gvproxy and never in the VM. +func (c *Container) convertPortMappings() []types.PortMapping { + return []types.PortMapping{} +} |