Feature: persistent wintun with GUID option (#301)

Fixes: #300
This commit is contained in:
Jason Lyu
2023-09-29 04:36:29 +08:00
committed by GitHub
parent f448baa2ae
commit 631fa59182
5 changed files with 57 additions and 3 deletions

14
engine/parse_unix.go Normal file
View File

@@ -0,0 +1,14 @@
//go:build unix
package engine
import (
"net/url"
"github.com/xjasonlyu/tun2socks/v2/core/device"
"github.com/xjasonlyu/tun2socks/v2/core/device/tun"
)
func parseTUN(u *url.URL, mtu uint32) (device.Device, error) {
return tun.Open(u.Host, mtu)
}