From ecaee4fe2f35b3f95c3f926b57ea817a31fefb73 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sun, 6 Dec 2015 15:25:10 -0700 Subject: [PATCH] * Handle RFC 779 SEND_LOCATION in telnet --- core/servers/telnet.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/servers/telnet.js b/core/servers/telnet.js index ffc99cf7..44d157be 100644 --- a/core/servers/telnet.js +++ b/core/servers/telnet.js @@ -113,7 +113,7 @@ var OPTIONS = { //DATA_ENTRY_TERMINAL : 20, // RFC 1043 //SUPDUP : 21, // RFC 736 //SUPDUP_OUTPUT : 22, // RFC 749 - //SEND_LOCATION : 23, // RFC 779 + SEND_LOCATION : 23, // RFC 779 TERMINAL_TYPE : 24, // aka 'TTYPE': RFC 1091 @ http://tools.ietf.org/html/rfc1091 //END_OF_RECORD : 25, // RFC 885 //TACACS_USER_ID : 26, // RFC 927 @@ -195,6 +195,7 @@ OPTION_IMPLS[OPTIONS.AUTHENTICATION] = 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.SUPPRESS_GO_AHEAD] = function(bufs, i, event) { event.buf = bufs.splice(0, i).toBuffer();