From 4bca835f08004df1e60cbae47f978e6c40a3691c Mon Sep 17 00:00:00 2001 From: Muihd <1083092844@qq.com> Date: Sun, 12 Jan 2025 13:55:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E5=A4=9A=E4=BD=99=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BarrageGrab/Proxy/TitaniumProxy.cs | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/BarrageGrab/Proxy/TitaniumProxy.cs b/BarrageGrab/Proxy/TitaniumProxy.cs index 876b7f5..40c6b85 100644 --- a/BarrageGrab/Proxy/TitaniumProxy.cs +++ b/BarrageGrab/Proxy/TitaniumProxy.cs @@ -102,7 +102,7 @@ namespace BarrageGrab.Proxy proxyServer.CertificateManager.TrustRootCertificate(true); proxyServer.ServerCertificateValidationCallback += ProxyServer_ServerCertificateValidationCallback; - proxyServer.BeforeRequest += ProxyServer_BeforeRequest; + //proxyServer.BeforeRequest += ProxyServer_BeforeRequest; proxyServer.BeforeResponse += ProxyServer_BeforeResponse; //proxyServer.AfterResponse += ProxyServer_AfterResponse; @@ -198,24 +198,6 @@ namespace BarrageGrab.Proxy return AppSetting.Current.ProcessFilter.Contains(processName) && processName != "直播伴侣" && processName != "douyin"; } - private async Task ProxyServer_BeforeRequest(object sender, SessionEventArgs e) - { - string uri = e.HttpClient.Request.RequestUri.ToString(); - string hostname = e.HttpClient.Request.RequestUri.Host; - var processid = e.HttpClient.ProcessId.Value; - var processName = base.GetProcessName(processid); - var contentType = e.HttpClient.Response.ContentType ?? ""; - - //ws 方式 - if ( - e.HttpClient.ConnectRequest?.TunnelType == TunnelType.Websocket && - webcastBarrageReg.IsMatch(uri) - ) - { - - } - } - private async Task ProxyServer_BeforeResponse(object sender, SessionEventArgs e) { string uri = e.HttpClient.Request.RequestUri.ToString();