mirror of
https://github.com/2dust/v2rayN.git
synced 2026-04-16 04:25:45 +00:00
Do not restart sing-box when enabling/disabling TUN on Linux
This commit is contained in:
parent
9c7fddf4e4
commit
4b52b06f6d
1 changed files with 4 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue