add clash premium core
This commit is contained in:
@@ -100,7 +100,7 @@
|
||||
""
|
||||
};
|
||||
|
||||
public static readonly List<string> coreTypes = new List<string> { "clash", "clash_meta" };
|
||||
public static readonly List<string> coreTypes = new List<string> { "clash", "clash_premium", "clash_meta", };
|
||||
|
||||
public static readonly List<string> allowSelectType = new List<string> { "selector", "urltest", "loadbalance", "fallback" };
|
||||
|
||||
|
||||
@@ -91,6 +91,18 @@ namespace clashN.Handler
|
||||
match = "Clash Meta"
|
||||
});
|
||||
|
||||
coreInfos.Add(new CoreInfo
|
||||
{
|
||||
coreType = ECoreType.clash_premium,
|
||||
coreExes = new List<string> { "clash-windows-amd64-v3", "clash-windows-amd64", "clash-windows-386", "clash" },
|
||||
arguments = "-f config.yaml",
|
||||
coreUrl = Global.clashCoreUrl,
|
||||
coreLatestUrl = Global.clashCoreUrl + "/latest",
|
||||
coreDownloadUrl32 = Global.clashCoreUrl + "/download/{0}/clash-windows-386-{0}.zip",
|
||||
coreDownloadUrl64 = Global.clashCoreUrl + "/download/{0}/clash-windows-amd64-{0}.zip",
|
||||
match = "Clash"
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ namespace clashN.Mode
|
||||
{
|
||||
clash = 1,
|
||||
clash_meta = 2,
|
||||
clash_premium = 3,
|
||||
clashN = 99
|
||||
}
|
||||
}
|
||||
|
||||
2
clashN/clashN/Resx/ResUI.Designer.cs
generated
2
clashN/clashN/Resx/ResUI.Designer.cs
generated
@@ -1655,7 +1655,7 @@ namespace clashN.Resx {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 To enable tun mode, please use Clash.Meta Core first; if you must use Clash Core, you need to download Clash Premium Core overlay 的本地化字符串。
|
||||
/// 查找类似 To enable tun mode, please use Clash.Meta Core first; or use Clash Premium Core 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string TunModeCoreTip {
|
||||
get {
|
||||
|
||||
@@ -602,7 +602,7 @@
|
||||
<value>The ping of current service: {0}</value>
|
||||
</data>
|
||||
<data name="TunModeCoreTip" xml:space="preserve">
|
||||
<value>To enable tun mode, please use Clash.Meta Core first; if you must use Clash Core, you need to download Clash Premium Core overlay</value>
|
||||
<value>To enable tun mode, please use Clash.Meta Core first; or use Clash Premium Core</value>
|
||||
</data>
|
||||
<data name="TbSave" xml:space="preserve">
|
||||
<value>Save</value>
|
||||
|
||||
@@ -602,7 +602,7 @@
|
||||
<value>当前服务的真连接延迟: {0}</value>
|
||||
</data>
|
||||
<data name="TunModeCoreTip" xml:space="preserve">
|
||||
<value>开启tun模式请优先使用Clash.Meta Core; 如一定要使用Clash Core, 需要下载Clash Premium Core覆盖</value>
|
||||
<value>开启tun模式请优先使用Clash.Meta Core; 或者使用Clash Premium Core</value>
|
||||
</data>
|
||||
<data name="TbSave" xml:space="preserve">
|
||||
<value>保存</value>
|
||||
|
||||
Reference in New Issue
Block a user