Fix sniff QUIC hidden in three or more packets

This commit is contained in:
世界 committed 2025-02-18 18:14:59 +08:00
1 parent ff31c469a0
commit 093013687c
2 files changed
+21 -1

No files matched your search

+1 -1
View File
@@ -622,7 +622,7 @@ func (r *Router) actionSniff(
Destination: destination,
}
packetBuffers = append(packetBuffers, packetBuffer)
if E.IsMulti(err, sniff.ErrClientHelloFragmented) && len(packetBuffers) == 0 {
if E.IsMulti(err, sniff.ErrClientHelloFragmented) {
r.logger.DebugContext(ctx, "attempt to sniff fragmented QUIC client hello")
continue
}