Enable sudo for mihomo core in TUN mode

https://github.com/2dust/v2rayN/issues/8673
This commit is contained in:
2dust
2026-02-04 10:15:36 +08:00
parent 7678ad9095
commit 19d4f1fa83

View File

@@ -226,7 +226,7 @@ public class CoreManager
{ {
if (mayNeedSudo if (mayNeedSudo
&& _config.TunModeItem.EnableTun && _config.TunModeItem.EnableTun
&& coreInfo.CoreType == ECoreType.sing_box && (coreInfo.CoreType is ECoreType.sing_box or ECoreType.mihomo)
&& Utils.IsNonWindows()) && Utils.IsNonWindows())
{ {
_linuxSudo = true; _linuxSudo = true;