mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Fix SSL errors not properly handled
Mono throws SSL errors as IOException when using SSLStream, instead of AuthenticationException.
This commit is contained in:
parent
20ce16fd2b
commit
8eb71bd3f8
1 changed files with 8 additions and 0 deletions
|
|
@ -183,6 +183,14 @@ namespace MinecraftClient.Protocol
|
||||||
{
|
{
|
||||||
return LoginResult.SSLError;
|
return LoginResult.SSLError;
|
||||||
}
|
}
|
||||||
|
catch (System.IO.IOException e)
|
||||||
|
{
|
||||||
|
if (e.Message.Contains("authentication"))
|
||||||
|
{
|
||||||
|
return LoginResult.SSLError;
|
||||||
|
}
|
||||||
|
else return LoginResult.OtherError;
|
||||||
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
return LoginResult.OtherError;
|
return LoginResult.OtherError;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue