summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornunojusto <nuno@justoweb.com>2016-08-16 22:10:14 +0100
committerGitHub <noreply@github.com>2016-08-16 22:10:14 +0100
commit83d3e02fd90fe29251083447f13ef92acfcfa1a1 (patch)
tree7d4029b6a436048f32118e530b3b95fa66728eaa
parentda82b3426c27bf1a79f671c5825d68ab8c0c5d9f (diff)
downloadnovnc-83d3e02fd90fe29251083447f13ef92acfcfa1a1.tar.gz
Update launch.sh
Just a correction of port in use test algoritm. This way we will not have problems when using port X and having some other service using zyX or any *X port
-rwxr-xr-xutils/launch.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/launch.sh b/utils/launch.sh
index af350b0..3611954 100755
--- a/utils/launch.sh
+++ b/utils/launch.sh
@@ -69,7 +69,7 @@ done
which netstat >/dev/null 2>&1 \
|| die "Must have netstat installed"
-netstat -ltn | grep -qs "${PORT} .*LISTEN" \
+netstat -ltn | grep -qs ":${PORT} .*LISTEN" \
&& die "Port ${PORT} in use. Try --listen PORT"
trap "cleanup" TERM QUIT INT EXIT