Update TUN creation

This commit is contained in:
世界
2023-02-26 19:16:28 +08:00
parent cebd730cf2
commit a338f3a5ba
14 changed files with 64 additions and 62 deletions

View File

@@ -150,7 +150,7 @@ func (t *Tun) Start() error {
if t.platformInterface != nil {
tunInterface, err = t.platformInterface.OpenTun(t.tunOptions)
} else {
tunInterface, err = tun.Open(t.tunOptions)
tunInterface, err = tun.New(t.tunOptions)
}
if err != nil {
return E.Cause(err, "configure tun interface")