diff options
-rw-r--r-- | telnet.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -8,6 +8,7 @@ import ( "log" "math" "net" + "strings" ) // A TelnetWriter can be used to print something at the other end @@ -93,6 +94,8 @@ func handleTelnet(conn net.Conn) { continue } + s = strings.TrimSuffix(s, "\r") + tlog("->", "command", s) if s == "\\quit" || s == "\\q" { |