From 4b52b06f6d345316c71a288a2fc9c54af7923c35 Mon Sep 17 00:00:00 2001 From: Valeriy Manzhos <47538801+InvisibleRain@users.noreply.github.com> Date: Thu, 9 Apr 2026 17:09:46 +0300 Subject: [PATCH] Do not restart sing-box when enabling/disabling TUN on Linux --- v2rayN/ServiceLib/ViewModels/StatusBarViewModel.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/v2rayN/ServiceLib/ViewModels/StatusBarViewModel.cs b/v2rayN/ServiceLib/ViewModels/StatusBarViewModel.cs index c794d4ed..384c7206 100644 --- a/v2rayN/ServiceLib/ViewModels/StatusBarViewModel.cs +++ b/v2rayN/ServiceLib/ViewModels/StatusBarViewModel.cs @@ -495,7 +495,11 @@ public class StatusBarViewModel : MyReactiveObject } } await ConfigHandler.SaveConfig(_config); + // On Linux TUN is managed by an external program, not by the core + if (!Utils.IsLinux()) + { AppEvents.ReloadRequested.Publish(); + } } private bool AllowEnableTun()