podman/pkg/machine
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
..
applehv Set machine docker.sock according to rootful flag 2023-05-14 23:56:15 -05:00
e2e Set machine docker.sock according to rootful flag 2023-05-14 23:56:15 -05:00
hyperv machine: fix default connection URL to use 127.0.0.1 2023-05-16 10:55:31 +02:00
os Introduce podman machine os apply 2023-02-15 14:48:12 -05:00
qemu machine: fix default connection URL to use 127.0.0.1 2023-05-16 10:55:31 +02:00
wsl machine: fix default connection URL to use 127.0.0.1 2023-05-16 10:55:31 +02:00
config.go Set machine docker.sock according to rootful flag 2023-05-14 23:56:15 -05:00
config_test.go pkg/machine: add missing build tags to tests 2022-07-04 18:09:30 +02:00
connection.go machine: fix default connection URL to use 127.0.0.1 2023-05-16 10:55:31 +02:00
errors.go MVP for Podman Machine with AppleHV 2023-05-02 13:09:56 -05:00
fcos.go MVP for Podman Machine with AppleHV 2023-05-02 13:09:56 -05:00
fcos_test.go Machine refactor for QEMU/AppleHV 2023-02-22 09:00:24 -06:00
fedora_unix.go WSL refactoring 2023-01-23 10:48:32 -06:00
fedora_windows.go WSL refactoring 2023-01-23 10:48:32 -06:00
ignition.go Set machine docker.sock according to rootful flag 2023-05-14 23:56:15 -05:00
ignition_darwin.go go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
ignition_freebsd.go pkg: Build pkg/machine on FreeBSD 2022-08-13 07:53:34 +01:00
ignition_linux.go fix #17244: use /etc/timezone where `timedatectl` is missing on Linux 2023-01-30 00:36:37 +09:00
ignition_schema.go go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
ignition_windows.go go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
keys.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
machine_unsupported.go go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
machine_windows.go Expose Podman named pipe in Inspect output 2023-02-03 00:05:28 +02:00
pull.go basic hypverv machine implementation 2023-03-17 16:02:28 -05:00
ssh.go Enabled network over vsock 2023-04-17 12:34:37 -05:00
update.go Set machine docker.sock according to rootful flag 2023-05-14 23:56:15 -05:00