WIP mproxy v2.x, still missing connection event
This commit is contained in:
parent
3c068debc0
commit
e72a5f1f56
|
@ -323,6 +323,7 @@ function _connect(state) {
|
||||||
}
|
}
|
||||||
|
|
||||||
, onconnection: function (tun) {
|
, onconnection: function (tun) {
|
||||||
|
console.log("[debug] got connection event");
|
||||||
var cid = tun._id = Packer.addrToId(tun);
|
var cid = tun._id = Packer.addrToId(tun);
|
||||||
|
|
||||||
// this data should have been gathered already as part of the proxy protocol
|
// this data should have been gathered already as part of the proxy protocol
|
||||||
|
@ -352,7 +353,7 @@ function _connect(state) {
|
||||||
handled = clientHandlers.write(cid, tun);
|
handled = clientHandlers.write(cid, tun);
|
||||||
|
|
||||||
// quasi backwards compat
|
// quasi backwards compat
|
||||||
if (!handled) { clientHandlers.onconnection(tun); }
|
if (!handled) { console.log("[debug] did not get connection event"); packerHandlers.onconnection(tun); }
|
||||||
}
|
}
|
||||||
|
|
||||||
, onpause: function (opts) {
|
, onpause: function (opts) {
|
||||||
|
|
Loading…
Reference in New Issue