diff options
author | Ward Fisher <wfisher@ucar.edu> | 2016-04-11 14:42:42 -0600 |
---|---|---|
committer | Ward Fisher <wfisher@ucar.edu> | 2016-04-11 14:42:42 -0600 |
commit | 27a1f6cb9505171fef9f604941bf54a2e1f0abcb (patch) | |
tree | 580086c74976b3fc8821a2c7c6afa131f6e1f756 /utils | |
parent | c77d9fcc4e752047388a404d7eeed6db6af39b2a (diff) | |
download | novnc-27a1f6cb9505171fef9f604941bf54a2e1f0abcb.tar.gz |
Tweaked message printed based on whether or not http is available.
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/launch.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/utils/launch.sh b/utils/launch.sh index bbce453..db61066 100755 --- a/utils/launch.sh +++ b/utils/launch.sh @@ -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} |