Add DTLS sniffer

This commit is contained in:
世界 2024-07-07 15:45:50 +08:00
parent 4b7a83da16
commit 369bc7cea3
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
6 changed files with 99 additions and 16 deletions

View file

@ -1000,6 +1000,7 @@ func (r *Router) RoutePacketConnection(ctx context.Context, conn N.PacketConn, m
sniff.STUNMessage,
sniff.UTP,
sniff.UDPTracker,
sniff.DTLSRecord,
)
if sniffMetadata != nil {
metadata.Protocol = sniffMetadata.Protocol