This commit is contained in:
BruceChen 2022-09-08 15:54:56 +08:00
parent bfd01a5f78
commit 0d1f930c65
2 changed files with 59 additions and 6 deletions

View file

@ -124,7 +124,7 @@ namespace MinecraftClient.Protocol
if (isSecure)
{
stream = new SslStream(client.GetStream());
((SslStream)stream).AuthenticateAsClient(host, null, (SslProtocols)3072, true); // Enable TLS 1.2. Hotfix for #1774
((SslStream)stream).AuthenticateAsClient(host, null, SslProtocols.Tls12, true); // Enable TLS 1.2. Hotfix for #1774
}
else
{