mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-02 16:49:10 +00:00
[TASK] Added extra parameter for proxy authentication
This commit is contained in:
@@ -131,14 +131,9 @@ public final class Landing {
|
|||||||
break;
|
break;
|
||||||
case "-proxy":
|
case "-proxy":
|
||||||
ProxyType type = ProxyType.valueOf(args[++i].toUpperCase());
|
ProxyType type = ProxyType.valueOf(args[++i].toUpperCase());
|
||||||
if (type == null) {
|
ProxySocket.setProxy(type, args[++i], Integer.parseInt(args[++i]));
|
||||||
System.err.println(TranslationHelper.translate("INVALID_PROXY_TYPE") + args[i]);
|
|
||||||
System.exit(1);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
ProxySocket.setProxy(type, args[++i],
|
|
||||||
Integer.parseInt(args[++i]));
|
|
||||||
break;
|
break;
|
||||||
|
case "-proxy_auth":
|
||||||
case "-auth":
|
case "-auth":
|
||||||
ProxySocket.auth = true;
|
ProxySocket.auth = true;
|
||||||
ProxySocket.setLogin(args[++i], args[++i]);
|
ProxySocket.setLogin(args[++i], args[++i]);
|
||||||
|
|||||||
Reference in New Issue
Block a user