Refactor wireguard & add tun support

This commit is contained in:
世界
2022-09-06 00:15:09 +08:00
parent 8e7957d440
commit cb4fea0240
20 changed files with 792 additions and 425 deletions

View File

@@ -0,0 +1,9 @@
//go:build no_gvisor
package wireguard
import "github.com/sagernet/sing-tun"
func NewStackDevice(localAddresses []netip.Prefix, mtu uint32) (Device, error) {
return nil, tun.ErrGVisorNotIncluded
}