From 47ed4f7dfaa03dbff8ae32e41291bfbcf421984e Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Fri, 29 Mar 2024 17:12:32 +0100 Subject: [PATCH] nc and webcat to 127.0.0.1 --- .github/workflows/test.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 3d802b5c..f441435e 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -62,7 +62,7 @@ jobs: container_id=$(docker run -d -it -p 127.0.0.1:5901:5901 test vncserver -xstartup /opt/install/jupyter_remote_desktop_proxy/share/xstartup -verbose -fg -geometry 1680x1050 -SecurityTypes None -rfbport 5901 ${{ matrix.vncserver_args }}) sleep 1 - timeout --preserve-status 1 nc -v localhost 5901 2>&1 | tee -a /dev/stderr | \ + timeout --preserve-status 1 nc -v 127.0.0.1 5901 2>&1 | tee -a /dev/stderr | \ grep --quiet RFB && echo "Passed test" || { echo "Failed test" && TEST_OK=false; } echo "::group::vncserver logs" @@ -81,7 +81,7 @@ jobs: container_id=$(docker run -d -it -p 127.0.0.1:5901:5901 test websockify --verbose --log-file=/tmp/websockify.log --heartbeat=30 5901 -- vncserver -xstartup /opt/install/jupyter_remote_desktop_proxy/share/xstartup -verbose -fg -geometry 1680x1050 -SecurityTypes None -rfbport 5901 ${{ matrix.vncserver_args }}) sleep 1 - websocat --binary --one-message --exit-on-eof "ws://localhost:5901/" 2>&1 | tee -a /dev/stderr | \ + websocat --binary --one-message --exit-on-eof "ws://127.0.0.1:5901/" 2>&1 | tee -a /dev/stderr | \ grep --quiet RFB && echo "Passed test" || { echo "Failed test" && TEST_OK=false; } echo "::group::websockify logs"