Add UDPTimeout option for flow
This commit is contained in:
parent
c17af6ee8c
commit
7c92d5e53e
2 changed files with 16 additions and 4 deletions
6
flow.go
6
flow.go
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue