github.com/apernet/sing-tun@v0.2.6-0.20240323130332-b9f6511036ad/stack_gvisor_stub.go (about)

     1  
     2  package tun
     3  
     4  import E "github.com/sagernet/sing/common/exceptions"
     5  
     6  const WithGVisor = false
     7  
     8  var ErrGVisorNotIncluded = E.New(`gVisor is not supported in this fork.`)
     9  
    10  func NewGVisor(
    11  	options StackOptions,
    12  ) (Stack, error) {
    13  	return nil, ErrGVisorNotIncluded
    14  }
    15  
    16  func NewMixed(
    17  	options StackOptions,
    18  ) (Stack, error) {
    19  	return nil, ErrGVisorNotIncluded
    20  }