mirror of
https://github.com/bitinflow/localtunnel.git
synced 2026-03-13 13:35:54 +00:00
add _request_ event to print basic request information
This commit is contained in:
@@ -77,7 +77,6 @@ Tunnel.prototype._establish = function(info) {
|
||||
|
||||
info.local_host = opt.local_host;
|
||||
info.local_port = opt.port;
|
||||
info.debug_logs = opt.debug_logs;
|
||||
|
||||
var tunnels = self.tunnel_cluster = TunnelCluster(info);
|
||||
|
||||
@@ -124,6 +123,10 @@ Tunnel.prototype._establish = function(info) {
|
||||
tunnels.open();
|
||||
});
|
||||
|
||||
tunnels.on('request', function(info) {
|
||||
self.emit('request', info);
|
||||
});
|
||||
|
||||
// establish as many tunnels as allowed
|
||||
for (var count = 0 ; count < info.max_conn ; ++count) {
|
||||
tunnels.open();
|
||||
|
||||
Reference in New Issue
Block a user