Add UDPTimeout option for flow

This commit is contained in:
世界 2026-07-07 21:19:56 +08:00
parent c17af6ee8c
commit 7c92d5e53e
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
2 changed files with 16 additions and 4 deletions

View file

@ -1,11 +1,15 @@
package tun
import "net/netip"
import (
"net/netip"
"time"
)
type FlowVerdict struct {
Action FlowAction
Port Port
Destination netip.AddrPort
UDPTimeout time.Duration
NewTracker func() FlowTracker
}