github.com/MerlinKodo/sing-tun@v0.1.15/stack_gvisor_stub.go (about) 1 //go:build !with_gvisor 2 3 package tun 4 5 import E "github.com/sagernet/sing/common/exceptions" 6 7 const WithGVisor = false 8 9 var ErrGVisorNotIncluded = E.New(`gVisor is not included in this build, rebuild with -tags with_gvisor`) 10 11 func NewGVisor( 12 options StackOptions, 13 ) (Stack, error) { 14 return nil, ErrGVisorNotIncluded 15 } 16 17 func NewMixed( 18 options StackOptions, 19 ) (Stack, error) { 20 return nil, ErrGVisorNotIncluded 21 }