mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 06:43:51 +02:00
Add proxy from launch argument to WebApi
Co-authored-by: Nekromateion <43814053+Nekromateion@users.noreply.github.com>
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Net;
|
||||
using System.Reflection;
|
||||
using System.Windows.Forms;
|
||||
using CefSharp;
|
||||
@@ -57,6 +58,12 @@ namespace VRCX
|
||||
Dock = DockStyle.Fill
|
||||
};
|
||||
|
||||
string? proxyUrl = VRCXStorage.Instance.Get("VRCX_ProxyServer");
|
||||
if (!string.IsNullOrEmpty(proxyUrl))
|
||||
{
|
||||
WebApi.Proxy = new WebProxy(proxyUrl);
|
||||
}
|
||||
|
||||
Browser.IsBrowserInitializedChanged += (A, B) =>
|
||||
{
|
||||
if (Program.LaunchDebug)
|
||||
|
||||
Reference in New Issue
Block a user