mirror of
https://github.com/bitinflow/localtunnel.git
synced 2026-03-17 07:25:54 +00:00
Added the --local-host parameter to tunnel the traffic to other hosts
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user