diff --git a/server.go b/server.go index 52a5b50..7c31ca8 100644 --- a/server.go +++ b/server.go @@ -72,8 +72,10 @@ func forwardWS2TCP(conn1 *websocket.Conn, conn2 net.Conn) { for { n, err := conn2.Read(buf) - if err != nil && err != io.EOF { - log.Errorln(err) + if err != nil { + if err != io.EOF { + log.Errorln(err) + } break }