mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-25 19:49:43 +08:00
尝试修复
https://appcenter.ms/orgs/BeyondDimension/apps/Steam/crashes/errors/4159743380u/overview https://appcenter.ms/orgs/BeyondDimension/apps/Steam/crashes/errors/54875828u/overview https://appcenter.ms/orgs/BeyondDimension/apps/Steam/crashes/errors/1168361231u/overview https://appcenter.ms/orgs/BeyondDimension/apps/Steam/crashes/errors/3350267961u/overview
This commit is contained in:
Submodule references/Titanium-Web-Proxy updated: a9c896a187...bbe6313620
@@ -60,7 +60,7 @@ namespace System.Application.Services.Implementation
|
||||
// 可选地设置证书引擎
|
||||
proxyServer.CertificateManager.CertificateEngine = CertificateEngine;
|
||||
//proxyServer.CertificateManager.PfxPassword = $"{CertificateName}";
|
||||
proxyServer.ThreadPoolWorkerThread = Environment.ProcessorCount * 8;
|
||||
//proxyServer.ThreadPoolWorkerThread = Environment.ProcessorCount * 8;
|
||||
proxyServer.CertificateManager.PfxFilePath = Path.Combine(IOPath.AppDataDirectory, $@"{CertificateName}.Certificate.pfx");
|
||||
proxyServer.CertificateManager.RootCertificateIssuerName = $"{CertificateName} Certificate Authority";
|
||||
proxyServer.CertificateManager.RootCertificateName = $"{CertificateName} Certificate";
|
||||
@@ -403,7 +403,7 @@ namespace System.Application.Services.Implementation
|
||||
if (IsProxyGOG) { WirtePemCertificateToGoGSteamPlugins(); }
|
||||
|
||||
#region 启动代理
|
||||
proxyServer.Enable100ContinueBehaviour = true;
|
||||
//proxyServer.Enable100ContinueBehaviour = true;
|
||||
proxyServer.EnableHttp2 = true;
|
||||
proxyServer.BeforeRequest += OnRequest;
|
||||
proxyServer.BeforeResponse += OnResponse;
|
||||
@@ -547,8 +547,14 @@ namespace System.Application.Services.Implementation
|
||||
proxyServer.ClientCertificateSelectionCallback -= OnCertificateSelection;
|
||||
proxyServer.Stop();
|
||||
}
|
||||
proxyServer.DisableSystemHttpProxy();
|
||||
proxyServer.DisableSystemHttpsProxy();
|
||||
try
|
||||
{
|
||||
proxyServer.DisableAllSystemProxies();
|
||||
}
|
||||
catch
|
||||
{
|
||||
//忽略异常导致的崩溃
|
||||
}
|
||||
}
|
||||
|
||||
public bool WirtePemCertificateToGoGSteamPlugins()
|
||||
|
||||
Reference in New Issue
Block a user