mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
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:
parent
1223c91d79
commit
0b870e2b49
2 changed files with 11 additions and 2 deletions
|
|
@ -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...");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue