Permalink
Browse files

0.0.3

  • Loading branch information...
1 parent 1878630 commit a55f3c27d503c1b2e339bd29327678749eec5847 @substack committed Nov 25, 2013
Showing with 4 additions and 5 deletions.
  1. +1 −0 lib/servers/socks5.js
  2. +1 −1 package.json
  3. +2 −4 test/proxy.js
@@ -69,6 +69,7 @@ function session (stream, cb) {
.word16bu('dst.port')
.tap(function (vars) {
var dst = vars.dst;
+ console.dir(vars);
cb({
host : dst.addr,
port : dst.port,
View
@@ -1,6 +1,6 @@
{
"name" : "prox",
- "version" : "0.0.2",
+ "version" : "0.0.3",
"description" : "Hookable socks5 proxy client and server.",
"modules" : {
"index" : "./lib/index"
View
@@ -69,8 +69,8 @@ exports.socks5_raw_client = function (assert) {
var server = socks5.createServer(function (req, res) {
assert.eql(req.host, 'moo');
assert.eql(req.port, 8080);
- res.write(new Buffer('oh hello '));
res.on('data', function (buf) {
+ res.write(new Buffer('oh hello '));
res.write(buf);
res.end();
});
@@ -79,9 +79,7 @@ exports.socks5_raw_client = function (assert) {
function ready () {
var stream = net.createConnection(port);
-
- Put()
- .write(stream);
+
var stream = socks5
.createConnection('localhost', port)
.connect('moo', 8080)

0 comments on commit a55f3c2

Please sign in to comment.