From e72a5f1f56866c9f9a2806d071e9bd71b5a0d539 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 8 Aug 2018 02:30:38 -0600 Subject: [PATCH] WIP mproxy v2.x, still missing connection event --- lib/remote.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/remote.js b/lib/remote.js index 940a047..fb31c27 100644 --- a/lib/remote.js +++ b/lib/remote.js @@ -323,6 +323,7 @@ function _connect(state) { } , onconnection: function (tun) { + console.log("[debug] got connection event"); var cid = tun._id = Packer.addrToId(tun); // 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); // quasi backwards compat - if (!handled) { clientHandlers.onconnection(tun); } + if (!handled) { console.log("[debug] did not get connection event"); packerHandlers.onconnection(tun); } } , onpause: function (opts) {