mirror of
https://github.com/2dust/v2rayN.git
synced 2025-10-27 18:42:52 +00:00
Uses Utils.GetExeName
This commit is contained in:
parent
d696e8acde
commit
2569e93091
1 changed files with 2 additions and 5 deletions
|
|
@ -1052,7 +1052,6 @@ public class CoreConfigSingboxService
|
||||||
var directExeSet = new HashSet<string>(StringComparer.OrdinalIgnoreCase);
|
var directExeSet = new HashSet<string>(StringComparer.OrdinalIgnoreCase);
|
||||||
|
|
||||||
var coreInfoResult = CoreInfoHandler.Instance.GetCoreInfo();
|
var coreInfoResult = CoreInfoHandler.Instance.GetCoreInfo();
|
||||||
var fileSuffix = Utils.IsWindows() ? ".exe" : "";
|
|
||||||
|
|
||||||
foreach (var coreConfig in coreInfoResult)
|
foreach (var coreConfig in coreInfoResult)
|
||||||
{
|
{
|
||||||
|
|
@ -1063,13 +1062,11 @@ public class CoreConfigSingboxService
|
||||||
|
|
||||||
foreach (var baseExeName in coreConfig.CoreExes)
|
foreach (var baseExeName in coreConfig.CoreExes)
|
||||||
{
|
{
|
||||||
var executableName = $"{baseExeName}{fileSuffix}";
|
|
||||||
|
|
||||||
if (coreConfig.CoreType != ECoreType.sing_box)
|
if (coreConfig.CoreType != ECoreType.sing_box)
|
||||||
{
|
{
|
||||||
dnsExeSet.Add(executableName);
|
dnsExeSet.Add(Utils.GetExeName(baseExeName));
|
||||||
}
|
}
|
||||||
directExeSet.Add(executableName);
|
directExeSet.Add(Utils.GetExeName(baseExeName));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue