* New user reserved names now direct to applicaiton process for SSH

This commit is contained in:
Bryan Ashby 2015-10-22 12:22:03 -06:00
parent 93cff52c1f
commit e9836e18db
5 changed files with 130 additions and 24 deletions

View file

@ -180,9 +180,6 @@ function startListening() {
return;
}
// servers require 'firstMenu'
assert(module.runtime.config.firstMenu, 'Server missing \'firstMenu\' member!');
var moduleInst = new module.getModule();
var server = moduleInst.createServer();
@ -202,13 +199,13 @@ function startListening() {
clientConns.addNewClient(client, clientSock);
client.on('ready', function onClientReady() {
client.on('ready', function clientReady(readyOptions) {
client.startIdleMonitor();
// Go to module -- use default error handler
prepareClient(client, function onPrepared() {
require('./connect.js').connectEntry(client, module.runtime.config.firstMenu);
prepareClient(client, function clientPrepared() {
require('./connect.js').connectEntry(client, readyOptions.firstMenu);
});
});