This commit is contained in:
aozhiwei 2024-04-05 20:16:44 +08:00
parent 7f34cdc03f
commit 8350cae2d3

View File

@ -123,9 +123,6 @@ func (this *WSPListener) decodePacket(conn net.Conn, buf []byte, offset *int, bu
msgHead := f5.WSProxyPackHead_C{}
msgHead.Read(buf, *offset)
fmt.Printf("------msgHead.PackLen:%d\n", msgHead.PackLen)
fmt.Printf("------msgHead.MsgId:%d\n", msgHead.MsgId)
if msgHead.MagicCode == f5.NET_MSG_MAGIC_CODE {
if bufLen-*offset < int(f5.WSPROXYPACKHEAD_C_SIZE)+int(msgHead.PackLen) {
continue