Commit 96a116b7 authored by Marc Gravell's avatar Marc Gravell

tickle SetAuthSuspect if AuthenticateAsClient fails

parent 8e5ba355
......@@ -878,8 +878,15 @@ async ValueTask<SocketMode> ISocketCallback.ConnectedAsync(Socket socket, TextWr
EncryptionPolicy.RequireEncryption);
try
{
ssl.AuthenticateAsClient(host, config.SslProtocols);
try
{
ssl.AuthenticateAsClient(host, config.SslProtocols);
}
catch
{
Multiplexer?.SetAuthSuspect();
throw;
}
Multiplexer.LogLocked(log, $"SSL connection established successfully using protocol: {ssl.SslProtocol}");
}
catch (AuthenticationException authexception)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment