wss 增加tls 版本

This commit is contained in:
DevWiki 2022-06-08 19:33:45 +08:00
parent 994fc8dc2c
commit 7fd2e915ef
2 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ namespace WebSocketTool.Client
mSocket = new WebSocket(url); mSocket = new WebSocket(url);
if (url.StartsWith("wss")) if (url.StartsWith("wss"))
{ {
mSocket.SslConfiguration.EnabledSslProtocols = SslProtocols.Tls | SslProtocols.Tls11 | SslProtocols.Tls12; mSocket.SslConfiguration.EnabledSslProtocols = SslProtocols.Tls;
} }
mSocket.OnOpen += OnOpen; mSocket.OnOpen += OnOpen;
mSocket.OnClose += OnClose; mSocket.OnClose += OnClose;

View File

@ -51,5 +51,5 @@ using System.Windows;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示: //通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyVersion("1.0.0.1")]
[assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.1")]