diff --git a/v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs b/v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs index 68c75d17..18805673 100644 --- a/v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs +++ b/v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs @@ -554,11 +554,11 @@ namespace ServiceLib.ViewModels { await Task.Run(() => { - //if (_config.tunModeItem.enableTun) - //{ - // Task.Delay(1000).Wait(); - // WindowsUtils.RemoveTunDevice(); - //} + if (_config.tunModeItem.enableTun) + { + Task.Delay(1000).Wait(); + WindowsUtils.RemoveTunDevice(); + } var node = ConfigHandler.GetDefaultServer(_config); CoreHandler.Instance.LoadCore(node); @@ -601,4 +601,4 @@ namespace ServiceLib.ViewModels #endregion Presets } -} \ No newline at end of file +}