mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
User hort:port value for proxy settings
Removed fields "host" and "port" Added field "server" expecting host:port Request by TorchRJ_
This commit is contained in:
parent
05065d42d1
commit
1847370cef
1 changed files with 14 additions and 4 deletions
|
|
@ -283,8 +283,19 @@ namespace MinecraftClient
|
||||||
else if (argValue == "socks4a"){ proxyType = Proxy.ProxyHandler.Type.SOCKS4a;}
|
else if (argValue == "socks4a"){ proxyType = Proxy.ProxyHandler.Type.SOCKS4a;}
|
||||||
else if (argValue == "socks5") { proxyType = Proxy.ProxyHandler.Type.SOCKS5; }
|
else if (argValue == "socks5") { proxyType = Proxy.ProxyHandler.Type.SOCKS5; }
|
||||||
break;
|
break;
|
||||||
case "host": ProxyHost = argValue; break;
|
case "server":
|
||||||
case "port": ProxyPort = str2int(argValue); break;
|
string[] host_splitted = argValue.Split(':');
|
||||||
|
if (host_splitted.Length == 1)
|
||||||
|
{
|
||||||
|
ProxyHost = host_splitted[0];
|
||||||
|
ProxyPort = 80;
|
||||||
|
}
|
||||||
|
else if (host_splitted.Length == 2)
|
||||||
|
{
|
||||||
|
ProxyHost = host_splitted[0];
|
||||||
|
ProxyPort = str2int(host_splitted[1]);
|
||||||
|
}
|
||||||
|
break;
|
||||||
case "username": ProxyUsername = argValue; break;
|
case "username": ProxyUsername = argValue; break;
|
||||||
case "password": ProxyPassword = argValue; break;
|
case "password": ProxyPassword = argValue; break;
|
||||||
}
|
}
|
||||||
|
|
@ -345,8 +356,7 @@ namespace MinecraftClient
|
||||||
+ "[Proxy]\r\n"
|
+ "[Proxy]\r\n"
|
||||||
+ "enabled=false\r\n"
|
+ "enabled=false\r\n"
|
||||||
+ "type=HTTP #Supported types: HTTP, SOCKS4, SOCKS4a, SOCKS5\r\n"
|
+ "type=HTTP #Supported types: HTTP, SOCKS4, SOCKS4a, SOCKS5\r\n"
|
||||||
+ "host=0.0.0.0\r\n"
|
+ "server=0.0.0.0:0000\r\n"
|
||||||
+ "port=8080\r\n"
|
|
||||||
+ "username=\r\n"
|
+ "username=\r\n"
|
||||||
+ "password=\r\n"
|
+ "password=\r\n"
|
||||||
+ "\r\n"
|
+ "\r\n"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue