mirror of https://github.com/2dust/v2rayN
Code clean
parent
38ae669070
commit
831a20ff91
|
@ -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", "" };
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue