podman/pkg/machine/wsl
Paul Holzinger ce07860a1c
machine: fix default connection URL to use 127.0.0.1
gvproxy listens on 127.0.0.1, using localhost as hostname can result in
the client trying to connect to the ipv6 localhost (`::1`). This will
fail as shown in the issue. This switches the hostname in the system
connection to 127.0.0.1 to fix this problem.
I switched the qemu, hyperV and WSL backend. I haven't touched the
applehv code because it uses two different ips and I am not sure what is
the correct thing there. I leave this to Brent to figure out.

[NO NEW TESTS NEEDED]

[1] https://github.com/containers/gvisor-tap-vsock/blob/main/cmd/gvproxy/main.go#L197-L199

Fixes #16470

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-05-16 10:55:31 +02:00
..
wutil Eliminate transient container deps from wslkerninst 2023-04-23 17:11:55 -05:00
fedora.go basic hypverv machine implementation 2023-03-17 16:02:28 -05:00
filelock.go Add user mode networking feature to Windows 2023-04-24 17:11:54 -05:00
machine.go machine: fix default connection URL to use 127.0.0.1 2023-05-16 10:55:31 +02:00
machine_unsupported.go go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
usermodenet.go Add user mode networking feature to Windows 2023-04-24 17:11:54 -05:00
util_windows.go Eliminate transient container deps from wslkerninst 2023-04-23 17:11:55 -05:00