Tweaked message printed based on whether or not http is available.

This commit is contained in:
Ward Fisher 2016-04-11 14:42:42 -06:00
parent c77d9fcc4e
commit 27a1f6cb95
1 changed files with 6 additions and 1 deletions

View File

@ -148,7 +148,12 @@ if ! ps -p ${proxy_pid} >/dev/null; then
fi
echo -e "\n\nNavigate to this URL:\n"
echo -e " http://$(hostname):${PORT}/vnc.html?host=$(hostname)&port=${PORT}\n"
if [ "x$SSLONLY" == "x" ]; then
echo -e " http://$(hostname):${PORT}/vnc.html?host=$(hostname)&port=${PORT}\n"
else
echo -e " https://$(hostname):${PORT}/vnc.html?host=$(hostname)&port=${PORT}\n"
fi
echo -e "Press Ctrl-C to exit\n\n"
wait ${proxy_pid}