mirror of
https://github.com/containers/podman.git
synced 2025-07-07 21:07:12 +08:00
Revert "Use static path for gvproxy"
This reverts commit 4acc1d685066faa1dc102532ba76a81d3ec6bdc0. [NO TESTS NEEDED] Signed-off-by: Brent Baude <bbaude@redhat.com>
This commit is contained in:
@ -605,9 +605,9 @@ func CheckActiveVM() (bool, string, error) {
|
|||||||
// startHostNetworking runs a binary on the host system that allows users
|
// startHostNetworking runs a binary on the host system that allows users
|
||||||
// to setup port forwarding to the podman virtual machine
|
// to setup port forwarding to the podman virtual machine
|
||||||
func (v *MachineVM) startHostNetworking() error {
|
func (v *MachineVM) startHostNetworking() error {
|
||||||
binary := filepath.Join("/usr/lib/podman/", machine.ForwarderBinaryName)
|
binary, err := exec.LookPath(machine.ForwarderBinaryName)
|
||||||
if _, err := os.Stat(binary); os.IsNotExist(err) {
|
if err != nil {
|
||||||
return errors.Errorf("unable to find %s", binary)
|
return err
|
||||||
}
|
}
|
||||||
// Listen on all at port 7777 for setting up and tearing
|
// Listen on all at port 7777 for setting up and tearing
|
||||||
// down forwarding
|
// down forwarding
|
||||||
|
Reference in New Issue
Block a user