]> git.proxmox.com Git - mirror_novnc.git/commit
Fix grep pattern when searching for listening sockets
authorMarco Leogrande <dark.knight.ita@gmail.com>
Tue, 28 Aug 2012 05:19:51 +0000 (22:19 -0700)
committerMarco Leogrande <dark.knight.ita@gmail.com>
Tue, 28 Aug 2012 05:19:51 +0000 (22:19 -0700)
commitcf068be2d883a87cb68cb7159cfaaf627f67acb3
treef43c4f0f5cbab21153fdfbdb4e472c1da30d27c4
parentfc003a13e7fcbbad6cb871d3ed6f2543078a35d7
Fix grep pattern when searching for listening sockets

The current grep pattern matches also port numbers that match only
partially the given $PORT number; e.g., if $PORT is 6080, 60800 will
match as well.

While TCP listening sockets in the 60000-65535 range are rare, they
need to be handled as well. The problem is also present if the user
selects a shorter PORT value with the --listen command line argument.

By adding a space, the pattern is fixed.
utils/launch.sh