From 9bb28b36cd8e48dae133005157d68cb52c3792be Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Wed, 22 Feb 2017 23:20:05 -0700 Subject: [PATCH] Crash on Telnet Bridge connecting to Tradewars server #105 --- core/servers/login/telnet.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/servers/login/telnet.js b/core/servers/login/telnet.js index 2e27a6f8..e340d512 100644 --- a/core/servers/login/telnet.js +++ b/core/servers/login/telnet.js @@ -142,6 +142,8 @@ const OPTIONS = { //SSPI_LOGON : 139, //PRAGMA_HEARTBEAT : 140 + ARE_YOU_THERE : 246, // aka 'AYT' RFC 854 @ https://tools.ietf.org/html/rfc854 + EXTENDED_OPTIONS_LIST : 255, // RFC 861 (STD 32) }; @@ -192,7 +194,7 @@ OPTION_IMPLS[OPTIONS.TERMINAL_SPEED] = OPTION_IMPLS[OPTIONS.REMOTE_FLOW_CONTROL] = OPTION_IMPLS[OPTIONS.X_DISPLAY_LOCATION] = OPTION_IMPLS[OPTIONS.SEND_LOCATION] = - +OPTION_IMPLS[OPTIONS.ARE_YOU_THERE] = OPTION_IMPLS[OPTIONS.SUPPRESS_GO_AHEAD] = function(bufs, i, event) { event.buf = bufs.splice(0, i).toBuffer(); return event;