diff --git a/core/servers/telnet.js b/core/servers/telnet.js index 7def16c8..c605cbf6 100644 --- a/core/servers/telnet.js +++ b/core/servers/telnet.js @@ -538,7 +538,11 @@ TelnetClient.prototype.handleWillCommand = function(evt) { }; TelnetClient.prototype.handleWontCommand = function(evt) { - this.connectionDebug(evt, 'WONT'); + if('new environment' === evt.option) { + this.dont.new_environment(); + } else { + this.connectionDebug(evt, 'WONT'); + } }; TelnetClient.prototype.handleDoCommand = function(evt) {