Skip to content

Commit 9cb80d1

Browse files
committed
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: #20327 Signed-off-by: Gunjan Vyas <[email protected]>
1 parent 52caa0f commit 9cb80d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/machine/wsl/usermodenet.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ fi
3232
if [[ ! $ROUTE =~ default\ via ]]; then
3333
exit 3
3434
fi
35-
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 &
35+
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 &
3636
echo $! > $STATE/vm.pid
3737
sleep 1
3838
ps -eo args | grep -q -m1 ^$GVFORWARDER || exit 42

0 commit comments

Comments
 (0)