* SSH is now functional for 'ssh', PuTTY, SyncTerm, EtherTerm, and hopefully most others

* Explicit detect of syncterm as ANSI
* Add serverType (TELNET, SSH) MCI: %ST
This commit is contained in:
Bryan Ashby 2015-10-21 22:51:35 -06:00
parent e7e9746a85
commit ad4eea6ba7
12 changed files with 101 additions and 43 deletions

View file

@ -175,7 +175,7 @@ function startListening() {
var port = parseInt(module.runtime.config.port);
if(isNaN(port)) {
logger.log.error({ port : module.runtime.config.port, server : module.moduleInfo.name }, 'Cannot load server (Invalid port)');
logger.log.error( { port : module.runtime.config.port, server : module.moduleInfo.name }, 'Cannot load server (Invalid port)');
return;
}
@ -188,11 +188,13 @@ function startListening() {
//
// Start tracking the client. We'll assign it an ID which is
// just the index in our connections array.
//
//
if(_.isUndefined(client.session)) {
client.session = {};
}
client.session.serverType = moduleInst.getServerType();
clientConns.addNewClient(client, clientSock);
client.on('ready', function onClientReady() {