Skip to content

Commit

Permalink
chore(telnet): Replace single case with if
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Apr 18, 2024
1 parent f54ad47 commit 04fbb45
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/server/telnet/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ func Proxy(conn net.Conn, proxy io.Writer, termCh chan string, sizeCh chan Windo
return err
}

switch Operator(b) {
case TerminalType:
if b == byte(TerminalType) {
log.Trace("Requesting terminal type")
if _, err := Write(conn, Iac, Subnegotiation, TerminalType, 1, Iac, Se); err != nil {
return err
Expand Down

0 comments on commit 04fbb45

Please sign in to comment.