feat: 允许在 Xray-Core 存在的情况下选择跳过 Xray-Core 的检查更新.
This commit is contained in:
@@ -9,6 +9,7 @@ public class ProxdConfig
|
|||||||
public string RemoteDnsServer { get; init; } = "https://1.1.1.1/dns-query";
|
public string RemoteDnsServer { get; init; } = "https://1.1.1.1/dns-query";
|
||||||
public string XrayCoreProgramDirectory { get; init; } = "./xray-core";
|
public string XrayCoreProgramDirectory { get; init; } = "./xray-core";
|
||||||
public string XrayCoreWorkingDirectory { get; init; } = "./xray-core";
|
public string XrayCoreWorkingDirectory { get; init; } = "./xray-core";
|
||||||
|
public bool SkipUpdateXrayCore { get; init; } = false;
|
||||||
public SubscribeSetting Subscribe { get; init; } = new();
|
public SubscribeSetting Subscribe { get; init; } = new();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -258,7 +258,7 @@ public class XrayCoreManager(
|
|||||||
requiredUpdate = true;
|
requiredUpdate = true;
|
||||||
logger.LogInformation("未找到 Xray-Core, 开始下载最新版本...");
|
logger.LogInformation("未找到 Xray-Core, 开始下载最新版本...");
|
||||||
}
|
}
|
||||||
else
|
else if (!config.CurrentValue.SkipUpdateXrayCore)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user