Compare commits

...

4 Commits

Author SHA1 Message Date
4a1f020100 Merge branch 'master' into v1 2018-08-08 02:31:46 -06:00
3724f66429 bugfix using custom relay 2018-08-08 02:31:36 -06:00
e72a5f1f56 WIP mproxy v2.x, still missing connection event 2018-08-08 02:30:38 -06:00
b5e8832fea add sclient link 2018-08-08 07:31:46 +00:00
3 changed files with 4 additions and 2 deletions

View File

@ -5,6 +5,7 @@ Because friends don't let friends localhost™
| Sponsored by [ppl](https://ppl.family)
| **Telebit Remote**
| [Telebit Relay](https://git.coolaj86.com/coolaj86/telebit-relay.js)
| [sclient](https://telebit.cloud/sclient)
|
<img align="center" src="https://git.coolaj86.com/coolaj86/telebit.js/raw/branch/master/usr/share/docs/terminal-example-1.png">

View File

@ -166,7 +166,7 @@ function askForConfig(state, mainCb) {
});
}
if (state.config.relay) { checkRelay(); return; }
if (state.config.relay) { checkRelay(state.config.relay); return; }
console.info("");
console.info("");
console.info("What relay will you be using? (press enter for default)");

View File

@ -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) {