refactor: WireGuard endpoint

This commit is contained in:
世界
2025-01-13 15:14:30 +08:00
parent fd299a0961
commit 68781387fe
89 changed files with 2186 additions and 678 deletions
+5 -5
View File
@@ -2,12 +2,12 @@
package wireguard
import (
"net/netip"
import "github.com/sagernet/sing-tun"
"github.com/sagernet/sing-tun"
)
func newStackDevice(options DeviceOptions) (Device, error) {
return nil, tun.ErrGVisorNotIncluded
}
func NewStackDevice(localAddresses []netip.Prefix, mtu uint32) (Device, error) {
func newSystemStackDevice(options DeviceOptions) (Device, error) {
return nil, tun.ErrGVisorNotIncluded
}