mirror of
https://github.com/2dust/v2rayN.git
synced 2026-04-16 04:25: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())}";
|
var cmdLine = $"{fileName.AppendQuotes()} {string.Format(coreInfo.Arguments, Utils.GetBinConfigPath(configPath).AppendQuotes())}";
|
||||||
sb.AppendLine($"exec sudo -u#{UID.ToString()} -S -- {cmdLine}");
|
sb.AppendLine($"exec sudo -u#{UID.ToString()} -S -- {cmdLine}");
|
||||||
var shFilePath = await FileUtils.CreateLinuxShellFile("run_as_sudo.sh", sb.ToString(), true);
|
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(
|
var procService = new ProcessService(
|
||||||
fileName: shFilePath,
|
fileName: shFilePath,
|
||||||
arguments: "",
|
arguments: "",
|
||||||
workingDirectory: Utils.GetBinConfigPath(),
|
workingDirectory: Utils.GetBinConfigPath(),
|
||||||
displayLog: true,
|
displayLog: true,
|
||||||
redirectInput: true,
|
redirectInput: true,
|
||||||
environmentVars: null,
|
environmentVars: env,
|
||||||
updateFunc: _updateFunc
|
updateFunc: _updateFunc
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue