mirror of
https://github.com/2dust/v2rayN.git
synced 2025-05-03 05:38:51 +00:00
Code clean
This commit is contained in:
parent
38ae669070
commit
831a20ff91
2 changed files with 14 additions and 3 deletions
|
@ -132,6 +132,7 @@
|
||||||
public static readonly List<string> networks = new() { "tcp", "kcp", "ws", "h2", "quic", "grpc" };
|
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> 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> 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> domainStrategys = new() { "AsIs", "IPIfNonMatch", "IPOnDemand" };
|
||||||
public static readonly List<string> domainMatchers = new() { "linear", "mph", "" };
|
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", "" };
|
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);
|
ViewModel = new AddServerViewModel(profileItem, this);
|
||||||
|
|
||||||
|
if (profileItem.configType == EConfigType.VLESS)
|
||||||
|
{
|
||||||
|
Global.coreTypes4VLESS.ForEach(it =>
|
||||||
|
{
|
||||||
|
cmbCoreType.Items.Add(it);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
Global.coreTypes.ForEach(it =>
|
Global.coreTypes.ForEach(it =>
|
||||||
{
|
{
|
||||||
cmbCoreType.Items.Add(it);
|
cmbCoreType.Items.Add(it);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
cmbCoreType.Items.Add(string.Empty);
|
cmbCoreType.Items.Add(string.Empty);
|
||||||
|
|
||||||
cmbStreamSecurity.Items.Add(string.Empty);
|
cmbStreamSecurity.Items.Add(string.Empty);
|
||||||
|
|
Loading…
Reference in a new issue