Merge pull request #99 from ZizzyDizzyMC/Indev

Ability to use proxy only for minecraft login
This commit is contained in:
ORelio 2015-10-18 18:04:50 +02:00
commit a5bf62bc94
2 changed files with 11 additions and 2 deletions

View file

@ -111,7 +111,14 @@ namespace MinecraftClient
try
{
client = ProxyHandler.newTcpClient(host, port);
if (Settings.OnlyForLogin)
{
client = new TcpClient(host, port);
}
else
{
client = ProxyHandler.newTcpClient(host, port);
}
client.ReceiveBufferSize = 1024 * 1024;
handler = Protocol.ProtocolHandler.getProtocolHandler(client, protocolversion, this);
Console.WriteLine("Version is supported.\nLogging in...");