mirror of
https://github.com/SagerNet/sing-tun.git
synced 2025-03-31 10:27:39 +03:00
21 lines
413 B
Go
21 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
|
|
}
|