sing-tun/stack_gvisor_stub.go
2023-08-12 19:38:06 +08:00

22 lines
413 B
Go

//go:build !with_gvisor
package tun
import E "github.com/sagernet/sing/common/exceptions"
const WithGVisor = false
var ErrGVisorNotIncluded = E.New(`gVisor is not included in this build, rebuild with -tags with_gvisor`)
func NewGVisor(
options StackOptions,
) (Stack, error) {
return nil, ErrGVisorNotIncluded
}
func NewMixed(
options StackOptions,
) (Stack, error) {
return nil, ErrGVisorNotIncluded
}