禁用IPV6, 提升代理性能
This commit is contained in:
@@ -33,7 +33,7 @@ namespace BarrageGrab
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public void Start()
|
public void Start()
|
||||||
{
|
{
|
||||||
FiddlerApplication.Startup(8887, FiddlerCoreStartupFlags.Default);
|
FiddlerApplication.Startup(8827, FiddlerCoreStartupFlags.Default);
|
||||||
console.WriteLine("Fiddler代理已启动", ConsoleColor.Green);
|
console.WriteLine("Fiddler代理已启动", ConsoleColor.Green);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -64,11 +64,18 @@ namespace BarrageGrab
|
|||||||
{
|
{
|
||||||
oRootCert = CertMaker.GetRootCertificate();
|
oRootCert = CertMaker.GetRootCertificate();
|
||||||
}
|
}
|
||||||
|
//信任证书
|
||||||
|
CertMaker.trustRootCert();
|
||||||
|
|
||||||
FiddlerApplication.oDefaultClientCertificate = oRootCert;
|
FiddlerApplication.oDefaultClientCertificate = oRootCert;
|
||||||
//忽略服务器证书错误
|
//忽略服务器证书错误
|
||||||
CONFIG.IgnoreServerCertErrors = true;
|
CONFIG.IgnoreServerCertErrors = true;
|
||||||
//信任证书
|
CONFIG.bEnableIPv6 = false;
|
||||||
CertMaker.trustRootCert();
|
//CONFIG.bCaptureCONNECT = true;
|
||||||
|
//CONFIG.bUseEventLogForExceptions = false;
|
||||||
|
//CONFIG.bAutoProxyLogon = false;
|
||||||
|
//CONFIG.bMITM_HTTPS = false;
|
||||||
|
////CONFIG.SetNoDecryptList("*");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void FiddlerApplication_OnWebSocketMessage(object sender, WebSocketMessageEventArgs e)
|
private void FiddlerApplication_OnWebSocketMessage(object sender, WebSocketMessageEventArgs e)
|
||||||
|
|||||||
Reference in New Issue
Block a user