device_stack_stub.go 239 B

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