Proxy Setting addition.

Added 'loginonlyproxy' option with true / false boolean options.
on 'true' only the minecraft login is redirected to the proxy.
Otherwise both the login and the server connection are routed though the
chosen proxy.

Provides a semi-workaround to issues #89 and #80 on ORelio/Indev
This commit is contained in:
ZizzyDizzyMC 2015-10-15 21:20:29 -04:00
parent 1223c91d79
commit 0b870e2b49
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.LoginOnlyProxy = true)
{
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...");