From 78ddd497ee917e0409230801dc74a9787f15d440 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Fri, 9 Sep 2022 19:37:24 +0800 Subject: [PATCH] Fix no_gvisor build --- transport/wireguard/device_stack_stub.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/transport/wireguard/device_stack_stub.go b/transport/wireguard/device_stack_stub.go index 6f2e6230..cc6d273c 100644 --- a/transport/wireguard/device_stack_stub.go +++ b/transport/wireguard/device_stack_stub.go @@ -2,7 +2,11 @@ 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) { return nil, tun.ErrGVisorNotIncluded