github.com/sagernet/sing-box@v1.9.0-rc.20/transport/wireguard/device_stack_stub.go (about)

     1  //go:build !with_gvisor
     2  
     3  package wireguard
     4  
     5  import (
     6  	"net/netip"
     7  
     8  	"github.com/sagernet/sing-tun"
     9  )
    10  
    11  func NewStackDevice(localAddresses []netip.Prefix, mtu uint32) (Device, error) {
    12  	return nil, tun.ErrGVisorNotIncluded
    13  }