From f2f85cfa188374f88d8f07a73d577f5de1fcb0e7 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 11 Sep 2018 02:02:15 -0600 Subject: [PATCH] add sclient with inverse ssh proxying --- bin/telebit.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/telebit.js b/bin/telebit.js index 7d3617b..f278460 100644 --- a/bin/telebit.js +++ b/bin/telebit.js @@ -5,6 +5,13 @@ // node telebit daemon arg1 arg2 if ('daemon' === process.argv[2]) { require('./telebitd.js'); +} else if ('sclient' === process.argv[2]) { + process.argv.splice(1,1); + require('sclient/bin/sclient.js'); +} else if ('ssh' === process.argv[2] && /[\w-]+\.[a-z]{2,}/i.test(process.argv[3])) { + process.argv.splice(1,1,'sclient'); + process.argv.splice(2,1,'--ssh'); + require('sclient/bin/sclient.js'); } else { require('./telebit-remote.js'); }