Added USEPROXY TRUE/FALSE to SET command.

This commit is contained in:
ruri
2019-04-30 15:18:00 +02:00
parent c0e352962a
commit 13767e4b6b
2 changed files with 8 additions and 0 deletions
+6
View File
@@ -47,6 +47,12 @@ namespace RuriLib.LS
data.Address = LineParser.ParseLiteral(ref input, "ADDRESS", true, data);
break;
case "USEPROXY":
var use = LineParser.ParseToken(ref input, TokenType.Parameter, true).ToUpper();
if (use == "TRUE") data.UseProxies = true;
else if (use == "FALSE") data.UseProxies = false;
break;
case "PROXY":
data.Proxy = new CProxy(LineParser.ParseLiteral(ref input, "PROXY", true, data), data.Proxy.Type);
break;