mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Merge pull request #99 from ZizzyDizzyMC/Indev
Ability to use proxy only for minecraft login
This commit is contained in:
commit
a5bf62bc94
2 changed files with 11 additions and 2 deletions
|
|
@ -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...");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue