all user to set env "SSLONLY" to any value, then `--ssl-only` will work.

This commit is contained in:
neilpang 2017-03-25 18:49:07 +08:00
parent 2e14840e3c
commit 69259cef8a
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ fi
echo "Starting webserver and WebSockets proxy on port ${PORT}"
#${HERE}/websockify --web ${WEB} ${CERT:+--cert ${CERT}} ${PORT} ${VNC_DEST} &
${WEBSOCKIFY} ${SSLONLY} --web ${WEB} ${CERT:+--cert ${CERT}} ${PORT} ${VNC_DEST} &
${WEBSOCKIFY} ${SSLONLY:+--ssl-only} --web ${WEB} ${CERT:+--cert ${CERT}} ${PORT} ${VNC_DEST} &
proxy_pid="$!"
sleep 1
if ! ps -p ${proxy_pid} >/dev/null; then