gfwproxyshadowsocksdocker-imagegogolanggvisornatnetworksocks4socks5tcpip-stacktortun-devicetun2sockstunneludpwireguard
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
254 B
14 lines
254 B
//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)
|
|
}
|
|
|