9swampy / Telnet

Published on Nuget at https://www.nuget.org/packages/Telnet
http://www.nugetmusthaves.com/Package/Telnet
MIT License
124 stars 50 forks source link

DONT/WONT case should read byte to the end of IAC #77

Open crrrrrrystal opened 9 months ago

crrrrrrystal commented 9 months ago
case (int)Commands.Dont:
case (int)Commands.Wont:
        // We should ignore Don't\Won't because that is the default state.
        // Only reply on state change. This helps avoid loops.
        // See RFC1143: https://tools.ietf.org/html/rfc1143
        return Task.CompletedTask;

The next byte read as a common content, for example 'ff fe 1f' will read '1f' as ','