禁用IPV6, 提升代理性能

This commit is contained in:
小白猿
2022-11-05 16:39:10 +08:00
parent e3233e14fe
commit 825ab5ecff
+10 -3
View File
@@ -33,7 +33,7 @@ namespace BarrageGrab
/// </summary>
public void Start()
{
FiddlerApplication.Startup(8887, FiddlerCoreStartupFlags.Default);
FiddlerApplication.Startup(8827, FiddlerCoreStartupFlags.Default);
console.WriteLine("Fiddler代理已启动", ConsoleColor.Green);
}
@@ -64,11 +64,18 @@ namespace BarrageGrab
{
oRootCert = CertMaker.GetRootCertificate();
}
//信任证书
CertMaker.trustRootCert();
FiddlerApplication.oDefaultClientCertificate = oRootCert;
//忽略服务器证书错误
CONFIG.IgnoreServerCertErrors = true;
//信任证书
CertMaker.trustRootCert();
CONFIG.bEnableIPv6 = false;
//CONFIG.bCaptureCONNECT = true;
//CONFIG.bUseEventLogForExceptions = false;
//CONFIG.bAutoProxyLogon = false;
//CONFIG.bMITM_HTTPS = false;
////CONFIG.SetNoDecryptList("*");
}
private void FiddlerApplication_OnWebSocketMessage(object sender, WebSocketMessageEventArgs e)