Code clean

pull/3756/head
2dust 2023-04-21 15:15:35 +08:00
parent 38ae669070
commit 831a20ff91
2 changed files with 14 additions and 3 deletions

View File

@ -132,6 +132,7 @@
public static readonly List<string> networks = new() { "tcp", "kcp", "ws", "h2", "quic", "grpc" };
public static readonly List<string> kcpHeaderTypes = new() { "srtp", "utp", "wechat-video", "dtls", "wireguard" };
public static readonly List<string> coreTypes = new() { "v2fly", "SagerNet", "Xray", "v2fly_v5" };
public static readonly List<string> coreTypes4VLESS = new() { "Xray" };
public static readonly List<string> domainStrategys = new() { "AsIs", "IPIfNonMatch", "IPOnDemand" };
public static readonly List<string> domainMatchers = new() { "linear", "mph", "" };
public static readonly List<string> fingerprints = new() { "chrome", "firefox", "safari", "ios", "android", "edge", "360", "qq", "random", "randomized", "" };

View File

@ -22,10 +22,20 @@ namespace v2rayN.Views
ViewModel = new AddServerViewModel(profileItem, this);
Global.coreTypes.ForEach(it =>
if (profileItem.configType == EConfigType.VLESS)
{
cmbCoreType.Items.Add(it);
});
Global.coreTypes4VLESS.ForEach(it =>
{
cmbCoreType.Items.Add(it);
});
}
else
{
Global.coreTypes.ForEach(it =>
{
cmbCoreType.Items.Add(it);
});
}
cmbCoreType.Items.Add(string.Empty);
cmbStreamSecurity.Items.Add(string.Empty);