mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Mojang Login: Enable TLS 1.2 (#1780)
Enable TLS 1.2 which is disabled by default on .NET 4.0 See also: #1783
This commit is contained in:
parent
eba309191c
commit
bb4c13168b
1 changed files with 2 additions and 1 deletions
|
|
@ -8,6 +8,7 @@ using MinecraftClient.Proxy;
|
||||||
using MinecraftClient.Protocol.Handlers;
|
using MinecraftClient.Protocol.Handlers;
|
||||||
using MinecraftClient.Protocol.Handlers.Forge;
|
using MinecraftClient.Protocol.Handlers.Forge;
|
||||||
using MinecraftClient.Protocol.Session;
|
using MinecraftClient.Protocol.Session;
|
||||||
|
using System.Security.Authentication;
|
||||||
|
|
||||||
namespace MinecraftClient.Protocol
|
namespace MinecraftClient.Protocol
|
||||||
{
|
{
|
||||||
|
|
@ -829,7 +830,7 @@ namespace MinecraftClient.Protocol
|
||||||
|
|
||||||
TcpClient client = ProxyHandler.newTcpClient(host, 443, true);
|
TcpClient client = ProxyHandler.newTcpClient(host, 443, true);
|
||||||
SslStream stream = new SslStream(client.GetStream());
|
SslStream stream = new SslStream(client.GetStream());
|
||||||
stream.AuthenticateAsClient(host);
|
stream.AuthenticateAsClient(host, null, (SslProtocols)3072, true); // Enable TLS 1.2. Hotfix for #1780
|
||||||
|
|
||||||
if (Settings.DebugMessages)
|
if (Settings.DebugMessages)
|
||||||
foreach (string line in headers)
|
foreach (string line in headers)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue