mirror of
https://github.com/2dust/v2rayN.git
synced 2026-04-14 19:45:45 +00:00
FIXME: Force setting ENABLE_DEPRECATED_LEGACY_DNS_SERVERS on core launch
This commit is contained in:
parent
7e8a109d97
commit
8257cbcae6
1 changed files with 3 additions and 2 deletions
|
|
@ -36,14 +36,15 @@ public class CoreAdminManager
|
|||
var cmdLine = $"{fileName.AppendQuotes()} {string.Format(coreInfo.Arguments, Utils.GetBinConfigPath(configPath).AppendQuotes())}";
|
||||
sb.AppendLine($"exec sudo -u#{UID.ToString()} -S -- {cmdLine}");
|
||||
var shFilePath = await FileUtils.CreateLinuxShellFile("run_as_sudo.sh", sb.ToString(), true);
|
||||
|
||||
Dictionary<string,string> env = new Dictionary<string, string>();
|
||||
env.Add("ENABLE_DEPRECATED_LEGACY_DNS_SERVERS", "true");
|
||||
var procService = new ProcessService(
|
||||
fileName: shFilePath,
|
||||
arguments: "",
|
||||
workingDirectory: Utils.GetBinConfigPath(),
|
||||
displayLog: true,
|
||||
redirectInput: true,
|
||||
environmentVars: null,
|
||||
environmentVars: env,
|
||||
updateFunc: _updateFunc
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue