diff --git a/v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs b/v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs index 68c75d177e6..1880567373a 100644 --- a/v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs +++ b/v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs @@ -554,11 +554,11 @@ private async Task LoadCore() { 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 @@ public async Task ApplyRegionalPreset(EPresetType type) #endregion Presets } -} \ No newline at end of file +}