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();