Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Hookable socks5 proxy client and server in node.js
tree: 8443b925e6

Fetching latest commit…

Cannot retrieve the latest commit at this time

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

README.markdown

prox

Network proxy server and client module.

Examples

server.js

var socks5 = require('prox').socks5;
socks5.createServer(function (err, req, stream) {
    stream.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.