Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
63f251d1fd | ||
|
|
83efe66f3e |
@@ -457,15 +457,8 @@ namespace v2rayN.Handler
|
|||||||
boundStreamSettings(node, "out", outbound.streamSettings);
|
boundStreamSettings(node, "out", outbound.streamSettings);
|
||||||
|
|
||||||
if (node.streamSecurity == Global.StreamSecurityReality)
|
if (node.streamSecurity == Global.StreamSecurityReality)
|
||||||
{
|
|
||||||
if (Utils.IsNullOrEmpty(node.flow))
|
|
||||||
{
|
|
||||||
usersItem.flow = Global.flows[1];
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
usersItem.flow = node.flow;
|
usersItem.flow = node.flow;
|
||||||
}
|
|
||||||
|
|
||||||
outbound.mux.enabled = false;
|
outbound.mux.enabled = false;
|
||||||
outbound.mux.concurrency = -1;
|
outbound.mux.concurrency = -1;
|
||||||
@@ -569,7 +562,7 @@ namespace v2rayN.Handler
|
|||||||
{
|
{
|
||||||
streamSettings.security = node.streamSecurity;
|
streamSettings.security = node.streamSecurity;
|
||||||
|
|
||||||
RealitySettings realitySettings = new()
|
TlsSettings realitySettings = new()
|
||||||
{
|
{
|
||||||
fingerprint = node.fingerprint.IsNullOrEmpty() ? config.coreBasicItem.defFingerprint : node.fingerprint,
|
fingerprint = node.fingerprint.IsNullOrEmpty() ? config.coreBasicItem.defFingerprint : node.fingerprint,
|
||||||
serverName = sni,
|
serverName = sni,
|
||||||
@@ -638,13 +631,6 @@ namespace v2rayN.Handler
|
|||||||
}
|
}
|
||||||
streamSettings.wsSettings = wsSettings;
|
streamSettings.wsSettings = wsSettings;
|
||||||
|
|
||||||
//TlsSettings tlsSettings = new TlsSettings();
|
|
||||||
//tlsSettings.allowInsecure = config.allowInsecure();
|
|
||||||
//if (!string.IsNullOrWhiteSpace(host))
|
|
||||||
//{
|
|
||||||
// tlsSettings.serverName = host;
|
|
||||||
//}
|
|
||||||
//streamSettings.tlsSettings = tlsSettings;
|
|
||||||
break;
|
break;
|
||||||
//h2
|
//h2
|
||||||
case "h2":
|
case "h2":
|
||||||
@@ -658,9 +644,6 @@ namespace v2rayN.Handler
|
|||||||
|
|
||||||
streamSettings.httpSettings = httpSettings;
|
streamSettings.httpSettings = httpSettings;
|
||||||
|
|
||||||
//TlsSettings tlsSettings2 = new TlsSettings();
|
|
||||||
//tlsSettings2.allowInsecure = config.allowInsecure();
|
|
||||||
//streamSettings.tlsSettings = tlsSettings2;
|
|
||||||
break;
|
break;
|
||||||
//quic
|
//quic
|
||||||
case "quic":
|
case "quic":
|
||||||
@@ -696,7 +679,6 @@ namespace v2rayN.Handler
|
|||||||
permit_without_stream = config.grpcItem.permit_without_stream,
|
permit_without_stream = config.grpcItem.permit_without_stream,
|
||||||
initial_windows_size = config.grpcItem.initial_windows_size,
|
initial_windows_size = config.grpcItem.initial_windows_size,
|
||||||
};
|
};
|
||||||
|
|
||||||
streamSettings.grpcSettings = grpcSettings;
|
streamSettings.grpcSettings = grpcSettings;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -391,7 +391,7 @@ namespace v2rayN.Mode
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// VLESS only
|
/// VLESS only
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public RealitySettings realitySettings { get; set; }
|
public TlsSettings realitySettings { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// grpc
|
/// grpc
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -404,34 +404,24 @@ namespace v2rayN.Mode
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 是否允许不安全连接(用于客户端)
|
/// 是否允许不安全连接(用于客户端)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool allowInsecure { get; set; }
|
public bool? allowInsecure { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string serverName { get; set; }
|
public string? serverName { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public List<string> alpn
|
public List<string>? alpn { get; set; }
|
||||||
{
|
|
||||||
get; set;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
public string? fingerprint { get; set; }
|
||||||
/// "chrome" | "firefox" | "safari" | "randomized"
|
|
||||||
/// </summary>
|
public bool? show { get; set; } = false;
|
||||||
public string fingerprint { get; set; }
|
public string? publicKey { get; set; }
|
||||||
|
public string? shortId { get; set; }
|
||||||
|
public string? spiderX { get; set; }
|
||||||
|
|
||||||
}
|
|
||||||
public class RealitySettings
|
|
||||||
{
|
|
||||||
public bool show { get; set; } = false;
|
|
||||||
public string fingerprint { get; set; }
|
|
||||||
public string serverName { get; set; }
|
|
||||||
public string publicKey { get; set; }
|
|
||||||
public string shortId { get; set; }
|
|
||||||
public string spiderX { get; set; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class TcpSettings
|
public class TcpSettings
|
||||||
|
|||||||
@@ -10,12 +10,12 @@
|
|||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<ApplicationIcon>v2rayN.ico</ApplicationIcon>
|
<ApplicationIcon>v2rayN.ico</ApplicationIcon>
|
||||||
<Copyright>Copyright © 2017-2023 (GPLv3)</Copyright>
|
<Copyright>Copyright © 2017-2023 (GPLv3)</Copyright>
|
||||||
<FileVersion>6.16</FileVersion>
|
<FileVersion>6.17</FileVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Downloader" Version="3.0.3" />
|
<PackageReference Include="Downloader" Version="3.0.3" />
|
||||||
<PackageReference Include="MaterialDesignThemes" Version="4.8.0" />
|
<PackageReference Include="MaterialDesignThemes" Version="4.7.1" />
|
||||||
<PackageReference Include="Hardcodet.NotifyIcon.Wpf" Version="1.1.0" />
|
<PackageReference Include="Hardcodet.NotifyIcon.Wpf" Version="1.1.0" />
|
||||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||||
<PackageReference Include="QRCoder.Xaml" Version="1.4.3" />
|
<PackageReference Include="QRCoder.Xaml" Version="1.4.3" />
|
||||||
|
|||||||
Reference in New Issue
Block a user