Update TUN creation

This commit is contained in:
世界 committed 2023-02-26 20:55:15 +08:00
1 parent a8f13bd956
commit 842730707c
14 files changed
+64 -62

No files matched your search

+1 -1
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")