Fix uTP sniffer

This commit is contained in:
世界
2025-04-06 16:19:46 +08:00
parent af17eaa537
commit 24af0766ac
2 changed files with 19 additions and 1 deletions

View File

@@ -68,7 +68,9 @@ func UTP(_ context.Context, metadata *adapter.InboundContext, packet []byte) err
if err != nil {
return err
}
if extension > 0x04 {
return os.ErrInvalid
}
var length byte
err = binary.Read(reader, binary.BigEndian, &length)
if err != nil {