Update Connection.cs

This commit is contained in:
irving ou
2024-05-22 20:10:05 -04:00
committed by Marc-André Moreau
parent 58755938c2
commit 5266147669
@@ -47,7 +47,10 @@ public static class Connection
promise.SetResult(certificate!.GetPublicKey());
return true;
});
await sslStream.AuthenticateAsClientAsync(servername);
await sslStream.AuthenticateAsClientAsync(new SslClientAuthenticationOptions()
{
AllowTlsResume = false
});
serverPublicKey = await promise.Task;
framedSsl = new Framed<SslStream>(sslStream);
connector.MarkSecurityUpgradeAsDone();