device_stack_stub.go 292 B

12345678910111213
  1. //go:build !with_gvisor
  2. package wireguard
  3. import "github.com/sagernet/sing-tun"
  4. func newStackDevice(options DeviceOptions) (Device, error) {
  5. return nil, tun.ErrGVisorNotIncluded
  6. }
  7. func newSystemStackDevice(options DeviceOptions) (Device, error) {
  8. return nil, tun.ErrGVisorNotIncluded
  9. }