black-socks-server
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "black-socks-server", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "server.js", |
@@ -27,4 +27,4 @@ const net = require('net') | ||
stream.on('data',(buf)=>{ | ||
this.next_stage() | ||
this[this.stage](buf) | ||
console.log(buf) | ||
this.tunnel(buf[0],buf.slice(1)) | ||
}) | ||
@@ -35,2 +35,14 @@ | ||
tunnel(id,data) | ||
{ | ||
if(id == 0x00) | ||
{ | ||
this.chromes.push(new chrome(data)) | ||
} | ||
else | ||
{ | ||
this.chromes[id].send(data) | ||
} | ||
} | ||
log(str) | ||
@@ -37,0 +49,0 @@ { |
2524
5
54