mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-29 13:35:20 -05:00
Correctly implement QUIC sniffer when handling multiple initial packets (#3310)
* Correctly implement QUIC sniffer when handling multiple initial packets * Only parse token for initial packet Signed-off-by: Vigilans <vigilans@foxmail.com> * Update test case for QUIC sniffer * Fix testcases * Third packet in `Handshake[2]; packet 1-3` mistakenly copied UDP header into payload, making the payload length 1278 instead of 1250 * Introduce `protocol.ErrProtoNeedMoreData` to allow sniffer to fetch more packets until complete --------- Signed-off-by: Vigilans <vigilans@foxmail.com> Co-authored-by: Shelikhoo <xiaokangwang@outlook.com> Co-authored-by: dyhkwong <50692134+dyhkwong@users.noreply.github.com>
This commit is contained in:
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user