Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated readme and examples for new more http-style interface

  • Loading branch information...
commit b15c9b6db45ef1fe46f2f3f393ebf00343ffd3bd 1 parent 9dadd11
James Halliday substack authored
Showing with 5 additions and 5 deletions.
  1. +2 −2 README.markdown
  2. +2 −2 examples/server.js
  3. +1 −1  package.json
4 README.markdown
View
@@ -9,8 +9,8 @@ Examples
server.js
---------
var socks5 = require('prox').socks5;
- socks5.createServer(function (err, req, stream) {
- stream.write('Requested ' + req.host + ':' + req.port);
+ socks5.createServer(function (req, res) {
+ res.write('Requested ' + req.host + ':' + req.port);
}).listen(7890)
client.js
4 examples/server.js
View
@@ -1,4 +1,4 @@
var socks5 = require('prox').socks5;
-socks5.createServer(function (err, req, stream) {
- stream.write('Requested ' + req.host + ':' + req.port);
+socks5.createServer(function (req, res) {
+ res.write('Requested ' + req.host + ':' + req.port);
}).listen(7890)
2  package.json
View
@@ -1,6 +1,6 @@
{
"name" : "prox",
- "version" : "0.0.1",
+ "version" : "0.0.2",
"description" : "Hookable socks5 proxy client and server.",
"modules" : {
"index" : "./lib/index"
Please sign in to comment.
Something went wrong with that request. Please try again.