diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-03-23 20:27:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-23 20:27:31 +0100 |
commit | 109224717354b1d32d1be854a019fe9d4a55cfa6 (patch) | |
tree | a85fdc759d1128dbf11669e0f85d23abb420f040 | |
parent | a1e2897e92ff4b79a57d6ebbecd7c70de23b8977 (diff) | |
parent | cdda1924a015fa1dc10a0e1231a9141884972640 (diff) | |
download | podman-109224717354b1d32d1be854a019fe9d4a55cfa6.tar.gz podman-109224717354b1d32d1be854a019fe9d4a55cfa6.tar.bz2 podman-109224717354b1d32d1be854a019fe9d4a55cfa6.zip |
Merge pull request #13617 from holzman/volume-mount-ipv4
Explicitly use IPv4 to check if podman-machine VM is listening
-rw-r--r-- | pkg/machine/qemu/machine.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/machine/qemu/machine.go b/pkg/machine/qemu/machine.go index 1bd9fb51b..3b14572a6 100644 --- a/pkg/machine/qemu/machine.go +++ b/pkg/machine/qemu/machine.go @@ -782,7 +782,7 @@ func (v *MachineVM) isRunning() (bool, error) { func (v *MachineVM) isListening() bool { // Check if we can dial it - conn, err := net.DialTimeout("tcp", fmt.Sprintf("%s:%d", "localhost", v.Port), 10*time.Millisecond) + conn, err := net.DialTimeout("tcp", fmt.Sprintf("%s:%d", "127.0.0.1", v.Port), 10*time.Millisecond) if err != nil { return false } |