Added the --local-host parameter to tunnel the traffic to other hosts

This commit is contained in:
Omri Bahumi
2013-11-14 15:44:50 +02:00
parent 18ada0854a
commit 21df257d16
2 changed files with 9 additions and 1 deletions

View File

@@ -19,6 +19,9 @@ var request_url = function(params, cb) {
var connect = function(opt) {
var ev = new EventEmitter();
// local host
var local_host = opt.local_host;
// local port
var local_port = opt.port;
@@ -39,7 +42,7 @@ var connect = function(opt) {
};
var local_opt = {
host: 'localhost',
host: local_host,
port: local_port
};