Fix no_gvisor build

This commit is contained in:
世界 2022-09-09 19:37:24 +08:00
parent 8d044232af
commit 78ddd497ee
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -2,7 +2,11 @@
package wireguard package wireguard
import "github.com/sagernet/sing-tun" import (
"net/netip"
"github.com/sagernet/sing-tun"
)
func NewStackDevice(localAddresses []netip.Prefix, mtu uint32) (Device, error) { func NewStackDevice(localAddresses []netip.Prefix, mtu uint32) (Device, error) {
return nil, tun.ErrGVisorNotIncluded return nil, tun.ErrGVisorNotIncluded