fix possible dead loop

master
dingjun 4 years ago
parent 73b101dfc5
commit 734613015e

@ -72,8 +72,10 @@ func forwardWS2TCP(conn1 *websocket.Conn, conn2 net.Conn) {
for {
n, err := conn2.Read(buf)
if err != nil && err != io.EOF {
if err != nil {
if err != io.EOF {
log.Errorln(err)
}
break
}

Loading…
Cancel
Save