Skip to content

Commit

Permalink
Merge pull request #13617 from holzman/volume-mount-ipv4
Browse files Browse the repository at this point in the history
Explicitly use IPv4 to check if podman-machine VM is listening
  • Loading branch information
openshift-merge-robot authored Mar 23, 2022
2 parents a1e2897 + cdda192 commit 1092247
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/machine/qemu/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 1092247

Please sign in to comment.