mirror of
https://github.com/go-gost/x.git
synced 2026-10-19 16:16:32 +00:00
Extract PopulateQUICClientHello/PopulateQUICServerHello into internal/util/sniffing/quic.go to deduplicate the QUIC ClientHello/ServerHello population logic that was copy-pasted across forward/local (Handle, handleRawDatagram) and redirect/udp handlers (3 sites → 2 helpers). - handler/redirect/udp: add QUIC ClientHello + ServerHello sniff with sniffing/sniffing.timeout metadata, populating ro.Proto/ro.TLS for recording. - handler/forward/local: replace inline QUIC blocks with shared helpers; use h.md.bufferSize instead of hardcoded 8192 for sniff reads. - internal/util/sniffing: add ProtoQUIC constant. Bump quic-dissector dependency to v0.1.0.