e2e: add UDP forward QUIC sniffing test

Add TestUDPForwardQUICSniffing: sends a real captured QUIC v1 Initial packet
through the UDP forward handler (with sniffing enabled) and verifies the
datagram is echoed back. Covers the QUIC ClientHello/ServerHello sniff path
in x/handler/redirect/udp and x/handler/forward/local.
This commit is contained in:
ginuerzh
2026-07-30 23:24:35 +08:00
parent 55bb214a94
commit 960f081e53
3 changed files with 77 additions and 0 deletions
@@ -0,0 +1,15 @@
services:
- name: udp-forward-quic
addr: :9000
handler:
type: udp
metadata:
sniffing: true
sniffing.timeout: 5s
stateless: true
listener:
type: udp
forwarder:
nodes:
- name: echo
addr: udp-echo:5679