diff --git a/core/bbs.js b/core/bbs.js index ac8fc0bd..59ef99fd 100644 --- a/core/bbs.js +++ b/core/bbs.js @@ -183,6 +183,10 @@ function startListening() { }); }); + server.on('error', function serverErr(err) { + logger.log.info(err); // 'close' should be handled after + }); + server.listen(port); logger.log.info({ server : module.moduleInfo.name, port : port }, 'Listening for connections'); }); diff --git a/core/servers/telnet.js b/core/servers/telnet.js index 4b51ce33..d497ca73 100644 --- a/core/servers/telnet.js +++ b/core/servers/telnet.js @@ -537,11 +537,11 @@ TelnetClient.prototype.handleDontCommand = function(evt) { }; TelnetClient.prototype.setTermType = function(ttype) { - this.term.env['TERM'] = ttype; + this.term.env.TERM = ttype; this.term.termType = ttype; Log.debug( { termType : ttype }, 'Set terminal type'); -} +}; TelnetClient.prototype.handleSbCommand = function(evt) { var self = this;