Skip to content

Commit

Permalink
options/echo: Improve offer
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Rudolph <[email protected]>
  • Loading branch information
PatrickRudolph committed Mar 1, 2021
1 parent 49b04b2 commit 8f8678c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions options/echo.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ func (e *EchoHandler) OptionCode() byte {
func (e *EchoHandler) Offer(c *telnet.Connection) {
if !e.client {
c.Conn.Write([]byte{telnet.IAC, telnet.WILL, e.OptionCode()})
c.Conn.Write([]byte{telnet.IAC, telnet.DONT, e.OptionCode()})
}
}

Expand Down

0 comments on commit 8f8678c

Please sign in to comment.