diff --git a/v2rayN/ServiceLib/Global.cs b/v2rayN/ServiceLib/Global.cs index 05809ed5..2db26e65 100644 --- a/v2rayN/ServiceLib/Global.cs +++ b/v2rayN/ServiceLib/Global.cs @@ -166,7 +166,7 @@ public static readonly List Flows = new() { "", "xtls-rprx-vision", "xtls-rprx-vision-udp443" }; public static readonly List Networks = new() { "tcp", "kcp", "ws", "httpupgrade", "splithttp", "h2", "quic", "grpc" }; public static readonly List KcpHeaderTypes = new() { "srtp", "utp", "wechat-video", "dtls", "wireguard" }; - public static readonly List CoreTypes = new() { "v2fly", "SagerNet", "Xray", "sing_box" }; + public static readonly List CoreTypes = new() { "v2fly", "Xray", "sing_box" };//TODO public static readonly List CoreTypes4VLESS = new() { "Xray", "sing_box" }; public static readonly List DomainStrategies = new() { "AsIs", "IPIfNonMatch", "IPOnDemand" }; public static readonly List DomainStrategies4Singbox = new() { "ipv4_only", "ipv6_only", "prefer_ipv4", "prefer_ipv6", "" }; diff --git a/v2rayN/ServiceLib/Handler/LazyConfig.cs b/v2rayN/ServiceLib/Handler/LazyConfig.cs index afc1f729..e54ccdb0 100644 --- a/v2rayN/ServiceLib/Handler/LazyConfig.cs +++ b/v2rayN/ServiceLib/Handler/LazyConfig.cs @@ -38,6 +38,14 @@ SQLiteHelper.Instance.CreateTable(); SQLiteHelper.Instance.CreateTable(); SQLiteHelper.Instance.CreateTable(); + + //TODO + //Prepare to remove the clash + SQLiteHelper.Instance.Execute($"update ProfileItem set coreType = 13 where coreType = 11"); + SQLiteHelper.Instance.Execute($"update ProfileItem set coreType = 13 where coreType = 12"); + //Prepare to remove the SagerNet + SQLiteHelper.Instance.Execute($"update ProfileItem set coreType = 2 where coreType = 3"); + } #region Config diff --git a/v2rayN/v2rayN/Views/AddServer2Window.xaml.cs b/v2rayN/v2rayN/Views/AddServer2Window.xaml.cs index eceaeba4..d9e59fb5 100644 --- a/v2rayN/v2rayN/Views/AddServer2Window.xaml.cs +++ b/v2rayN/v2rayN/Views/AddServer2Window.xaml.cs @@ -17,6 +17,9 @@ namespace v2rayN.Views foreach (ECoreType it in Enum.GetValues(typeof(ECoreType))) { if (it == ECoreType.v2rayN) + continue; + //TODO + if (it is ECoreType.clash or ECoreType.clash_meta or ECoreType.SagerNet) continue; cmbCoreType.Items.Add(it.ToString()); }