Fix quic sniff irl

This commit is contained in:
世界 2022-07-10 07:52:33 +08:00
parent 730144cc26
commit 4432cc2253
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
2 changed files with 43 additions and 13 deletions

View file

@ -28,6 +28,7 @@ func PeekPacket(ctx context.Context, packet []byte, sniffers ...PacketSniffer) (
for _, sniffer := range sniffers {
sniffMetadata, err := sniffer(ctx, packet)
if err != nil {
println(err.Error())
return nil, err
}
return sniffMetadata, nil