working
This commit is contained in:
parent
7e8f90a89f
commit
1ceb55cf57
|
@ -73,8 +73,8 @@ function run(copts) {
|
||||||
, remotePort: opts.port
|
, remotePort: opts.port
|
||||||
}, function () {
|
}, function () {
|
||||||
//console.log("[=>] first packet from tunneler to '" + cid + "' as '" + opts.service + "'", opts.data.byteLength);
|
//console.log("[=>] first packet from tunneler to '" + cid + "' as '" + opts.service + "'", opts.data.byteLength);
|
||||||
|
// this will happen before 'data' is triggered
|
||||||
localclients[cid].write(opts.data);
|
localclients[cid].write(opts.data);
|
||||||
//localclients[cid].resume();
|
|
||||||
});
|
});
|
||||||
// 'data'
|
// 'data'
|
||||||
/*
|
/*
|
||||||
|
@ -115,8 +115,6 @@ function run(copts) {
|
||||||
console.info("[end] closing client '" + cid + "' for '" + servername + "' (" + (handlers._numClients() - 1) + " clients)");
|
console.info("[end] closing client '" + cid + "' for '" + servername + "' (" + (handlers._numClients() - 1) + " clients)");
|
||||||
handlers._onLocalClose(cid, opts);
|
handlers._onLocalClose(cid, opts);
|
||||||
});
|
});
|
||||||
//localclients[cid].pause();
|
|
||||||
//localclients[cid].write(opts.data);
|
|
||||||
}
|
}
|
||||||
, onend: function (opts) {
|
, onend: function (opts) {
|
||||||
var cid = Packer.addrToId(opts);
|
var cid = Packer.addrToId(opts);
|
||||||
|
|
Loading…
Reference in New Issue