Always run cores with sudo, even when TUN is disabled

This commit is contained in:
Valeriy Manzhos 2026-04-07 18:29:56 +03:00
parent 0cd19bf552
commit e35f988502
No known key found for this signature in database
GPG key ID: 6547CFC8E2EC3D90

View file

@ -299,7 +299,6 @@ public class CoreManager
try try
{ {
if (mayNeedSudo if (mayNeedSudo
&& _config.TunModeItem.EnableTun
&& (coreInfo.CoreType is ECoreType.sing_box or ECoreType.mihomo) && (coreInfo.CoreType is ECoreType.sing_box or ECoreType.mihomo)
&& Utils.IsNonWindows()) && Utils.IsNonWindows())
{ {