A fix to invalid commands causing node-telnet to crash irrevocably.#10
A fix to invalid commands causing node-telnet to crash irrevocably.#10dazhazit wants to merge 1 commit intoTooTallNate:masterfrom
Conversation
|
One unit test fail on one version of node and we have a pull failure? |
|
I assume this is a case such as sending command EL will crash the host? It's better to add the handling for these then to swallow the error.
;['eof','susp','abort','ec','el'].forEach(function (command) { Really, additional linemode support should be added; but this code will prevent crashes. |
I've been waiting for a few months for a fix to this so I did it myself. OK, try/catch could have been used but it seemed a cleaner solution to put in guard code where the crash is happening and just ignore the command code or option code entirely.