mirror of
https://github.com/2dust/v2rayN.git
synced 2026-02-04 17:59:45 +05:00
Enable sudo for mihomo core in TUN mode
https://github.com/2dust/v2rayN/issues/8673
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user