mirror of
https://github.com/SagerNet/sing-tun.git
synced 2025-04-03 03:47:39 +03:00
Migrate to udpnat2 / Add PrepareConnection
This commit is contained in:
parent
99eea00432
commit
7f8e556bb0
6 changed files with 121 additions and 84 deletions
3
stack.go
3
stack.go
|
@ -5,6 +5,7 @@ import (
|
|||
"encoding/binary"
|
||||
"net"
|
||||
"net/netip"
|
||||
"time"
|
||||
|
||||
"github.com/sagernet/sing/common/control"
|
||||
E "github.com/sagernet/sing/common/exceptions"
|
||||
|
@ -23,7 +24,7 @@ type StackOptions struct {
|
|||
Tun Tun
|
||||
TunOptions Options
|
||||
EndpointIndependentNat bool
|
||||
UDPTimeout int64
|
||||
UDPTimeout time.Duration
|
||||
Handler Handler
|
||||
Logger logger.Logger
|
||||
ForwarderBindInterface bool
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue