From 2a93de94876c8881be802081e11a0e12227e83a5 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Thu, 21 May 2020 21:22:15 -0600 Subject: [PATCH] Yet more ANSI-BBS related updates --- core/servers/login/telnet.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/core/servers/login/telnet.js b/core/servers/login/telnet.js index fe0393c2..39f8abbb 100644 --- a/core/servers/login/telnet.js +++ b/core/servers/login/telnet.js @@ -56,11 +56,14 @@ class TelnetClient { this.socket.on('DO', command => { switch (command.option) { + // We've already stated we WILL do the following via + // the banner - some terminals will ask over and over + // if we respond to a DO with a WILL, so just don't + // do anything... case Options.SGA : - return this.socket.will.sga(); - + case Options.ECHO : case Options.TRANSMIT_BINARY : - return this.socket.will.transmit_binary(); + break; default : return this.socket.command(Commands.WONT, command.option); @@ -199,6 +202,7 @@ class TelnetClient { } banner() { + this.socket.do.echo(); this.socket.will.echo(); // we'll echo back this.socket.will.sga();