mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-31 03:56:30 +08:00
15 lines
207 B
Go
15 lines
207 B
Go
package tun
|
|
|
|
import (
|
|
"golang.zx2c4.com/wireguard/tun"
|
|
)
|
|
|
|
const (
|
|
offset = 0
|
|
defaultMTU = 0 /* auto */
|
|
)
|
|
|
|
func createTUN(name string, mtu int) (tun.Device, error) {
|
|
return tun.CreateTUN(name, mtu)
|
|
}
|