Use SocketException when proxy connection fails

Allows using same error handling code as regular connection failures,
see #670
This commit is contained in:
ORelio 2019-04-17 05:59:02 +02:00
parent 80d51ede31
commit 992003da8d

View file

@ -64,7 +64,7 @@ namespace MinecraftClient.Proxy
{
ConsoleIO.WriteLineFormatted("§8" + e.Message);
proxy = null;
return null;
throw new SocketException((int)SocketError.HostUnreachable);
}
}
}