From 342c37b38828c0573417cf8a91adebe51e96a75b Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sun, 28 Jan 2018 12:56:35 -0700 Subject: [PATCH] Allow extraArgs such that we can launch from menu items easier --- core/telnet_bridge.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/core/telnet_bridge.js b/core/telnet_bridge.js index 30db1207..6fb81d21 100644 --- a/core/telnet_bridge.js +++ b/core/telnet_bridge.js @@ -126,8 +126,7 @@ exports.getModule = class TelnetBridgeModule extends MenuModule { constructor(options) { super(options); - this.config = options.menuConfig.config; - // defaults + this.config = Object.assign({}, _.get(options, 'menuConf.config'), options.extraArgs); this.config.port = this.config.port || 23; } @@ -152,10 +151,10 @@ exports.getModule = class TelnetBridgeModule extends MenuModule { host : self.config.host, }; - let clientTerminated; - self.client.term.write(resetScreen()); - self.client.term.write(` Connecting to ${connectOpts.host}, please wait...\n`); + self.client.term.write( + ` Connecting to ${connectOpts.host}, please wait...\n` + ); const telnetConnection = new TelnetClientConnection(self.client);