fork noVNC, rename to websockify, cleanup.

Split of wsproxy from noVNC and rename it websockify.
This commit is contained in:
Joel Martin
2011-01-12 18:09:54 -06:00
parent 932e7318b9
commit 6d1e216115
63 changed files with 1821 additions and 5780 deletions
Executable
+18
View File
@@ -0,0 +1,18 @@
#!/bin/bash
usage() {
echo "Usage: $(basename $0) OLD_PORT NEW_PORT COMMAND_LINE"
echo
echo "Launch COMMAND_LINE, but intercept system calls to bind"
echo "to OLD_PORT and instead bind them to localhost:NEW_PORT"
exit 2
}
# Parameter defaults
mydir=$(readlink -f $(dirname ${0}))
export REBIND_PORT_OLD="${1}"; shift
export REBIND_PORT_NEW="${1}"; shift
LD_PRELOAD=${mydir}/rebind.so "${@}"