mirror of
https://github.com/2dust/v2rayN.git
synced 2026-04-16 04:25:45 +00:00
Explicitly specify UID to use in RunProcess calls
This commit is contained in:
parent
dc45d96395
commit
0d72b8a40c
1 changed files with 4 additions and 4 deletions
|
|
@ -115,7 +115,7 @@ public class CoreManager
|
|||
await UpdateFunc(false, configPath);
|
||||
|
||||
var coreInfo = CoreInfoManager.Instance.GetCoreInfo(coreType);
|
||||
return await RunProcess(coreInfo, fileName, true, false);
|
||||
return await RunProcess(coreInfo, fileName, true, false, 0);
|
||||
}
|
||||
|
||||
public async Task<ProcessService?> LoadCoreConfigSpeedtest(ServerTestItem testItem)
|
||||
|
|
@ -137,7 +137,7 @@ public class CoreManager
|
|||
|
||||
var coreType = context.RunCoreType;
|
||||
var coreInfo = CoreInfoManager.Instance.GetCoreInfo(coreType);
|
||||
return await RunProcess(coreInfo, fileName, true, false);
|
||||
return await RunProcess(coreInfo, fileName, true, false, 0);
|
||||
}
|
||||
|
||||
public async Task CoreStop()
|
||||
|
|
@ -179,7 +179,7 @@ public class CoreManager
|
|||
var coreInfo = CoreInfoManager.Instance.GetCoreInfo(coreType);
|
||||
|
||||
var displayLog = node.ConfigType != EConfigType.Custom || node.DisplayLog;
|
||||
var proc = await RunProcess(coreInfo, Global.CoreConfigFileName, displayLog, true);
|
||||
var proc = await RunProcess(coreInfo, Global.CoreConfigFileName, displayLog, true, 0);
|
||||
if (proc is null)
|
||||
{
|
||||
return;
|
||||
|
|
@ -197,7 +197,7 @@ public class CoreManager
|
|||
if (result.Success)
|
||||
{
|
||||
var coreInfo = CoreInfoManager.Instance.GetCoreInfo(preCoreType);
|
||||
var proc = await RunProcess(coreInfo, Global.CorePreConfigFileName, true, true);
|
||||
var proc = await RunProcess(coreInfo, Global.CorePreConfigFileName, true, true, 0);
|
||||
if (proc is null)
|
||||
{
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue