Do not restart sing-box when enabling/disabling TUN on Linux

This commit is contained in:
Valeriy Manzhos 2026-04-09 17:09:46 +03:00
parent 9c7fddf4e4
commit 4b52b06f6d
No known key found for this signature in database
GPG key ID: 6547CFC8E2EC3D90

View file

@ -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()