Introduce DTLS sniffer

This commit is contained in:
世界
2024-07-07 15:45:50 +08:00
parent 2718a9ae5e
commit 0ca1bfb444
6 changed files with 99 additions and 16 deletions

View File

@@ -966,6 +966,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