mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
WebRequest: Enable TLS 1.2
Fix #1774 Temporary fix. May not work if .NET Framework 4.6+ missing
This commit is contained in:
parent
981dd51a9b
commit
eba309191c
1 changed files with 2 additions and 1 deletions
|
|
@ -7,6 +7,7 @@ using System.Collections.Specialized;
|
|||
using System.Net.Sockets;
|
||||
using MinecraftClient.Proxy;
|
||||
using System.Net.Security;
|
||||
using System.Security.Authentication;
|
||||
|
||||
namespace MinecraftClient.Protocol
|
||||
{
|
||||
|
|
@ -123,7 +124,7 @@ namespace MinecraftClient.Protocol
|
|||
if (isSecure)
|
||||
{
|
||||
stream = new SslStream(client.GetStream());
|
||||
((SslStream)stream).AuthenticateAsClient(host);
|
||||
((SslStream)stream).AuthenticateAsClient(host, null, (SslProtocols)3072, true); // Enable TLS 1.2. Hotfix for #1774
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue