Twisol / anachronism

An RFC-compliant implementation of the Telnet protocol
MIT License
13 stars 0 forks source link

WANTNO sending DO under IAC DONT #1

Closed ProjectMoon closed 13 years ago

ProjectMoon commented 13 years ago

Was referencing your code to implement my own for nodejs and saw this.

https://github.com/Twisol/anachronism/blob/master/src/nvt.c#L190

Shouldn't that be sending WILL instead of DO, according to the RFC?

Twisol commented 13 years ago

Good catch! The tell-tale sign it's wrong is that it's the same in both the DONT and WONT branches.

I'll push a fix later today; I'm not on my Linux partition at the moment.