aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--telnet.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/telnet.go b/telnet.go
index d03c252..a3aaf20 100644
--- a/telnet.go
+++ b/telnet.go
@@ -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" {