리팩토링

This commit is contained in:
imnyang 2025-06-07 19:15:21 +09:00
commit 0d09f191c5
7 changed files with 559 additions and 141 deletions

View file

@ -2,15 +2,19 @@ from mitmproxy import http
import asyncio
from pkce_check import PKCEDowngradeChecker
class PKCEAddon:
def __init__(self):
self.checker = PKCEDowngradeChecker()
async def request(self, flow: http.HTTPFlow):
print(f"[DEBUG] Processing request: {flow.request.method} {flow.request.pretty_url}")
print(
f"[DEBUG] Processing request: {flow.request.method} {flow.request.pretty_url}"
)
try:
await self.checker.test(flow)
except Exception as e:
print(f"[ERROR] Addon failed: {e}")
addons = [PKCEAddon()]