Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Hookable socks5 proxy client and server in node.js
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
lib 0.0.3
test
README.markdown
package.json

README.markdown

prox

Network proxy server and client module.

Examples

server.js

var socks5 = require('prox').socks5;
socks5.createServer(function (req, res) {
    res.write('Requested ' + req.host + ':' + req.port);
}).listen(7890)

client.js

var socks5 = require('prox').socks5;

var stream = socks5.createConnection('localhost', 7890)
    .connect('substack.net', 1337);

stream.on('data', function (buf) {
    console.log(buf.toString());
});

output

$ node server.js &
[1] 32058
$ node client.js 
Requested substack.net:1337
Something went wrong with that request. Please try again.