summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorJoel Martin <github@martintribe.org>2013-04-15 12:22:34 -0500
committerJoel Martin <github@martintribe.org>2013-04-15 12:22:34 -0500
commit7c1cd937442f678b2881f025c1d421832184b25c (patch)
tree66aab66ed858b786a5d8e2144703230f1d201dce /utils
parent7dc038efd9e8e116f2c2512490ac7c6f2c8bf9ae (diff)
downloadnovnc-7c1cd937442f678b2881f025c1d421832184b25c.tar.gz
Remove references to wsproxy.
Also, update nova-novncproxy to import websockify instead of wsproxy.
Diffstat (limited to 'utils')
-rw-r--r--utils/README.md13
-rwxr-xr-xutils/launch.sh2
-rwxr-xr-xutils/nova-novncproxy8
-rw-r--r--utils/rebind.c4
4 files changed, 13 insertions, 14 deletions
diff --git a/utils/README.md b/utils/README.md
index 0abbd0d..b90a387 100644
--- a/utils/README.md
+++ b/utils/README.md
@@ -1,11 +1,10 @@
-## WebSockets Proxy
-
-wsproxy has become [websockify](https://github.com/kanaka/websockify).
-A copy of the python version of websockify (named wsproxy.py) is kept
-here for ease of use. The other versions of websockify (C, Node.js)
-and the associated test programs have been moved to
-[websockify](https://github.com/kanaka/websockify).
+## WebSockets Proxy/Bridge
For more detailed description and usage information please refer to
the [websockify README](https://github.com/kanaka/websockify/blob/master/README.md).
+The other versions of websockify (C, Node.js) and the associated test
+programs have been moved to
+[websockify](https://github.com/kanaka/websockify). Websockify was
+formerly named wsproxy.
+
diff --git a/utils/launch.sh b/utils/launch.sh
index 707ebe1..1581f17 100755
--- a/utils/launch.sh
+++ b/utils/launch.sh
@@ -102,7 +102,7 @@ else
fi
echo "Starting webserver and WebSockets proxy on port ${PORT}"
-${HERE}/wsproxy.py --web ${WEB} ${CERT:+--cert ${CERT}} ${PORT} ${VNC_DEST} &
+${HERE}/websockify --web ${WEB} ${CERT:+--cert ${CERT}} ${PORT} ${VNC_DEST} &
proxy_pid="$!"
sleep 1
if ! ps -p ${proxy_pid} >/dev/null; then
diff --git a/utils/nova-novncproxy b/utils/nova-novncproxy
index a1a6947..7e5afbd 100755
--- a/utils/nova-novncproxy
+++ b/utils/nova-novncproxy
@@ -19,7 +19,7 @@
'''
Websocket proxy that is compatible with Openstack Nova.
-Leverages wsproxy.py by Joel Martin
+Leverages websockify by Joel Martin
'''
import Cookie
@@ -27,7 +27,7 @@ from oslo.config import cfg
import socket
import sys
-import wsproxy
+import websockify
from nova import config
from nova import context
@@ -73,9 +73,9 @@ if hasattr(rpc, 'register_opts'):
rpc.register_opts(CONF)
-class NovaWebSocketProxy(wsproxy.WebSocketProxy):
+class NovaWebSocketProxy(websockify.WebSocketProxy):
def __init__(self, *args, **kwargs):
- wsproxy.WebSocketProxy.__init__(self, *args, **kwargs)
+ websockify.WebSocketProxy.__init__(self, *args, **kwargs)
def new_client(self):
"""
diff --git a/utils/rebind.c b/utils/rebind.c
index caed616..69b9ff9 100644
--- a/utils/rebind.c
+++ b/utils/rebind.c
@@ -7,8 +7,8 @@
* REBIND_PORT_NEW environment variables are set then bind on the new
* port (of localhost) instead of the old port.
*
- * This allows a proxy (such as wsproxy) to run on the old port and translate
- * traffic to/from the new port.
+ * This allows a bridge/proxy (such as websockify) to run on the old port and
+ * translate traffic to/from the new port.
*
* Usage:
* LD_PRELOAD=./rebind.so \