mirror of
https://github.com/containers/podman.git
synced 2025-10-18 19:53:58 +08:00
gvproxy: Disable port-forwarding on WSL
This commit disables ssh port forwarding on WSL by passing -1 to the -ssh-port flag of gvproxy. Port forwarding is not required on WSL and disabling it prevents port conflict with CRC. Fixes: https://github.com/containers/podman/issues/20327 Signed-off-by: Gunjan Vyas <vyasgun20@gmail.com>
This commit is contained in:
@ -32,7 +32,7 @@ fi
|
||||
if [[ ! $ROUTE =~ default\ via ]]; then
|
||||
exit 3
|
||||
fi
|
||||
nohup $GVFORWARDER -iface podman-usermode -stop-if-exist ignore -url "stdio:$GVPROXY?listen-stdio=accept" > /var/log/vm.log 2> /var/log/vm.err < /dev/null &
|
||||
nohup $GVFORWARDER -iface podman-usermode -stop-if-exist ignore -url "stdio:$GVPROXY?listen-stdio=accept&ssh-port=-1" > /var/log/vm.log 2> /var/log/vm.err < /dev/null &
|
||||
echo $! > $STATE/vm.pid
|
||||
sleep 1
|
||||
ps -eo args | grep -q -m1 ^$GVFORWARDER || exit 42
|
||||
|
Reference in New Issue
Block a user