mirror of
https://github.com/SagerNet/sing-tun.git
synced 2025-04-05 12:57:39 +03:00
Create gVisor stack by default in NE
This commit is contained in:
parent
839f1792e4
commit
fe89bbded2
3 changed files with 19 additions and 1 deletions
3
stack.go
3
stack.go
|
@ -24,6 +24,7 @@ type StackOptions struct {
|
|||
UDPTimeout int64
|
||||
Handler Handler
|
||||
Logger logger.Logger
|
||||
UnderPlatform bool
|
||||
}
|
||||
|
||||
func NewStack(
|
||||
|
@ -32,7 +33,7 @@ func NewStack(
|
|||
) (Stack, error) {
|
||||
switch stack {
|
||||
case "":
|
||||
return NewSystem(options)
|
||||
return defaultStack(options)
|
||||
case "gvisor":
|
||||
return NewGVisor(options)
|
||||
case "system":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue