From 3cdebe788d65cf132a6acf78a4f9c9de01569ef8 Mon Sep 17 00:00:00 2001 From: Anthony Young Date: Tue, 1 May 2012 15:22:04 -0700 Subject: [PATCH] Add additional path to rebind search , update docs --- README.md | 10 ++++++++-- websockify/proxy.py | 3 ++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 70ceb8a..006a0c8 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ read binary data off of the receive queue. The Websock API is documented on the [websock.js API wiki page](https://github.com/kanaka/websockify/wiki/websock.js) See the "Wrap a Program" section below for an example of using Websock -and websockify as a browser telnet client (`wstelnet.html`). +and websockify as a browser telnet client (`www/wstelnet.html`). ### Additional websockify features @@ -107,6 +107,12 @@ port is moved to a new localhost/loopback free high port. websockify then proxies WebSockets traffic directed to the original port to the new (moved) port of the program. +You can build rebind.so like so: + + cd rebind + make + cd .. + The program wrap mode is invoked by replacing the target with `--` followed by the program command line to wrap. @@ -127,7 +133,7 @@ the command: `sudo bin/websockify 2023 --wrap-mode=respawn -- telnetd -debug 2023` -The `wstelnet.html` page demonstrates a simple WebSockets based telnet +The `www/wstelnet.html` page demonstrates a simple WebSockets based telnet client. diff --git a/websockify/proxy.py b/websockify/proxy.py index 5da4efb..56a0077 100644 --- a/websockify/proxy.py +++ b/websockify/proxy.py @@ -52,7 +52,8 @@ Traffic Legend: self.rebind_path + '/rebind.so', './rebind.so', os.path.dirname(sys.argv[0]) + 'rebind.so', - 'rebind/rebind.so'] + 'rebind/rebind.so', + '../rebind/rebind.so'] self.rebinder = None for rpath in rebinder_path: