mirror of
https://github.com/2dust/v2rayN.git
synced 2026-02-18 08:13:02 +00:00
Enable sudo for mihomo core in TUN mode
https://github.com/2dust/v2rayN/issues/8673
This commit is contained in:
parent
7678ad9095
commit
19d4f1fa83
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue