summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-11-16 14:53:40 +0100
committerGitHub <noreply@github.com>2021-11-16 14:53:40 +0100
commit8430ffc72e74f1271174984674a1c2ee6118779e (patch)
treea3c0542f0f8b218a55172177ae1a3497043f90f4 /pkg
parentbe681ab5189dea3eef73082d0b494699072e66aa (diff)
parent295d87bb0b028e57dc2739791dee4820fe5fcc48 (diff)
downloadpodman-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.go5
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 {