websockify.js: executable, fix usage statement.

This commit is contained in:
Joel Martin 2012-10-26 18:01:05 -05:00
parent 6a126405bd
commit 3018cf8c1a
1 changed files with 3 additions and 1 deletions

4
other/websockify.js Normal file → Executable file
View File

@ -1,3 +1,5 @@
#!/usr/bin/env node
// A WebSocket to TCP socket proxy
// Copyright 2012 Joel Martin
// Licensed under LGPL version 3 (see docs/LICENSE.LGPL-3)
@ -148,7 +150,7 @@ try {
throw("illegal port");
}
} catch(e) {
console.error("wsproxy.py [--web web_dir] [source_addr:]source_port target_addr:target_port");
console.error("websockify.js [--web web_dir] [source_addr:]source_port target_addr:target_port");
process.exit(2);
}