diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-11-16 14:53:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-16 14:53:40 +0100 |
commit | 8430ffc72e74f1271174984674a1c2ee6118779e (patch) | |
tree | a3c0542f0f8b218a55172177ae1a3497043f90f4 /pkg | |
parent | be681ab5189dea3eef73082d0b494699072e66aa (diff) | |
parent | 295d87bb0b028e57dc2739791dee4820fe5fcc48 (diff) | |
download | podman-8430ffc72e74f1271174984674a1c2ee6118779e.tar.gz podman-8430ffc72e74f1271174984674a1c2ee6118779e.tar.bz2 podman-8430ffc72e74f1271174984674a1c2ee6118779e.zip |
Merge pull request #12283 from Luap99/machine-ports
podman machine improve port forwarding
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/machine/qemu/machine.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/pkg/machine/qemu/machine.go b/pkg/machine/qemu/machine.go index a7174aac3..57c32bf74 100644 --- a/pkg/machine/qemu/machine.go +++ b/pkg/machine/qemu/machine.go @@ -664,9 +664,6 @@ func (v *MachineVM) startHostNetworking() error { return err } - // Listen on all at port 7777 for setting up and tearing - // down forwarding - listenSocket := "tcp://0.0.0.0:7777" qemuSocket, pidFile, err := v.getSocketandPid() if err != nil { return err @@ -676,7 +673,7 @@ func (v *MachineVM) startHostNetworking() error { files := []*os.File{os.Stdin, os.Stdout, os.Stderr} attr.Files = files cmd := []string{binary} - cmd = append(cmd, []string{"-listen", listenSocket, "-listen-qemu", fmt.Sprintf("unix://%s", qemuSocket), "-pid-file", pidFile}...) + cmd = append(cmd, []string{"-listen-qemu", fmt.Sprintf("unix://%s", qemuSocket), "-pid-file", pidFile}...) // Add the ssh port cmd = append(cmd, []string{"-ssh-port", fmt.Sprintf("%d", v.Port)}...) if logrus.GetLevel() == logrus.DebugLevel { |