From d554f68973ea701427f50f5121b932f1dcda72a0 Mon Sep 17 00:00:00 2001 From: "Petitlaurent, JeanLouis" Date: Thu, 26 Apr 2018 17:39:47 +0200 Subject: [PATCH] Correct the URL command line to open a specific VNC host and port --- utils/launch.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/launch.sh b/utils/launch.sh index 9e650e42..82276ee4 100755 --- a/utils/launch.sh +++ b/utils/launch.sh @@ -153,9 +153,9 @@ fi echo -e "\n\nNavigate to this URL:\n" if [ "x$SSLONLY" == "x" ]; then - echo -e " http://$(hostname):${PORT}/vnc.html?host=$(hostname)&port=${PORT}\n" + echo -e " http://$(hostname):${PORT}/vnc.html?host=$(echo "$VNC_DEST"| cut -d: -f1)&port=$(echo "$VNC_DEST"| cut -d: -f2)\n" else - echo -e " https://$(hostname):${PORT}/vnc.html?host=$(hostname)&port=${PORT}\n" + echo -e " https://$(hostname):${PORT}/vnc.html?host=$(echo "$VNC_DEST"| cut -d: -f1)&port=$(echo "$VNC_DEST"| cut -d: -f2)\n" fi echo -e "Press Ctrl-C to exit\n\n"