Add flow tracking

This commit is contained in:
世界 2026-07-06 23:37:38 +08:00
parent ed63adda33
commit 14c8f75f7a
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
7 changed files with 240 additions and 39 deletions

2
tun.go
View file

@ -19,7 +19,7 @@ import (
)
type Handler interface {
JudgeFlow(network uint8, source netip.AddrPort, destination netip.AddrPort) FlowVerdict
JudgeFlow(network uint8, source netip.AddrPort, destination netip.AddrPort, firstPacket []byte) FlowVerdict
N.TCPConnectionHandlerEx
N.UDPConnectionHandlerEx
}