Proxy settings

This commit is contained in:
Natsumi
2024-07-17 10:31:18 +12:00
parent a4d03c7e00
commit e26aed5c6a
11 changed files with 114 additions and 26 deletions

View File

@@ -19,6 +19,7 @@ namespace VRCX
internal class StartupArgs
{
public static string LaunchCommand;
public static string ProxyUrl;
public static Process[] processList;
public static void ArgsCheck()
@@ -52,10 +53,7 @@ namespace VRCX
Program.LaunchDebug = true;
if (arg.Length >= 16 && arg.Substring(0, 14) == "--proxy-server")
{
string proxyUrl = arg.Substring(15).Replace("'", string.Empty).Replace("\"", string.Empty);
WebApi.Proxy = new WebProxy(proxyUrl);
}
ProxyUrl = arg.Substring(15).Replace("'", string.Empty).Replace("\"", string.Empty);
}
var type = CommandLineArgsParser.GetArgumentValue(args, CefSharpArguments.SubProcessTypeArgument);