Fix windows interface monitor

This commit is contained in:
世界
2023-03-09 23:05:42 +08:00
parent 8550495789
commit c986a48001
4 changed files with 5 additions and 5 deletions

View File

@@ -140,7 +140,7 @@ func (t *Tun) Start() error {
if C.IsAndroid {
t.tunOptions.BuildAndroidRules(t.router.PackageManager(), t)
}
tunIf, err := tun.Open(t.tunOptions)
tunIf, err := tun.New(t.tunOptions)
if err != nil {
return E.Cause(err, "configure tun interface")
}