Skip to content

Commit 1b11916

Browse files
committed
Preparing to remove part of the core
#5703
1 parent 3dfd557 commit 1b11916

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

v2rayN/ServiceLib/Global.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public class Global
166166
public static readonly List<string> Flows = new() { "", "xtls-rprx-vision", "xtls-rprx-vision-udp443" };
167167
public static readonly List<string> Networks = new() { "tcp", "kcp", "ws", "httpupgrade", "splithttp", "h2", "quic", "grpc" };
168168
public static readonly List<string> KcpHeaderTypes = new() { "srtp", "utp", "wechat-video", "dtls", "wireguard" };
169-
public static readonly List<string> CoreTypes = new() { "v2fly", "SagerNet", "Xray", "sing_box" };
169+
public static readonly List<string> CoreTypes = new() { "v2fly", "Xray", "sing_box" };//TODO
170170
public static readonly List<string> CoreTypes4VLESS = new() { "Xray", "sing_box" };
171171
public static readonly List<string> DomainStrategies = new() { "AsIs", "IPIfNonMatch", "IPOnDemand" };
172172
public static readonly List<string> DomainStrategies4Singbox = new() { "ipv4_only", "ipv6_only", "prefer_ipv4", "prefer_ipv6", "" };

v2rayN/ServiceLib/Handler/LazyConfig.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ public LazyConfig()
3838
SQLiteHelper.Instance.CreateTable<RoutingItem>();
3939
SQLiteHelper.Instance.CreateTable<ProfileExItem>();
4040
SQLiteHelper.Instance.CreateTable<DNSItem>();
41+
42+
//TODO
43+
//Prepare to remove the clash
44+
SQLiteHelper.Instance.Execute($"update ProfileItem set coreType = 13 where coreType = 11");
45+
SQLiteHelper.Instance.Execute($"update ProfileItem set coreType = 13 where coreType = 12");
46+
//Prepare to remove the SagerNet
47+
SQLiteHelper.Instance.Execute($"update ProfileItem set coreType = 2 where coreType = 3");
48+
4149
}
4250

4351
#region Config

v2rayN/v2rayN/Views/AddServer2Window.xaml.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ public AddServer2Window(ProfileItem profileItem)
1717
foreach (ECoreType it in Enum.GetValues(typeof(ECoreType)))
1818
{
1919
if (it == ECoreType.v2rayN)
20+
continue;
21+
//TODO
22+
if (it is ECoreType.clash or ECoreType.clash_meta or ECoreType.SagerNet)
2023
continue;
2124
cmbCoreType.Items.Add(it.ToString());
2225
}

0 commit comments

Comments
 (0)