add sclient with inverse ssh proxying
This commit is contained in:
parent
5ce4b90bcd
commit
f2f85cfa18
|
@ -5,6 +5,13 @@
|
||||||
// node telebit daemon arg1 arg2
|
// node telebit daemon arg1 arg2
|
||||||
if ('daemon' === process.argv[2]) {
|
if ('daemon' === process.argv[2]) {
|
||||||
require('./telebitd.js');
|
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 {
|
} else {
|
||||||
require('./telebit-remote.js');
|
require('./telebit-remote.js');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue