From ad2aca1803775b30c45c7f37cae105429d738b99 Mon Sep 17 00:00:00 2001 From: Salad Dais Date: Fri, 18 Apr 2025 01:44:23 +0000 Subject: [PATCH] Upgrade mitmproxy --- hippolyzer/lib/proxy/http_proxy.py | 12 ------------ setup.py | 6 +++--- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/hippolyzer/lib/proxy/http_proxy.py b/hippolyzer/lib/proxy/http_proxy.py index 27227a8..9358d1f 100644 --- a/hippolyzer/lib/proxy/http_proxy.py +++ b/hippolyzer/lib/proxy/http_proxy.py @@ -116,18 +116,6 @@ class IPCInterceptionAddon: self.to_proxy_queue: multiprocessing.Queue = flow_context.to_proxy_queue self.shutdown_signal: multiprocessing.Event = flow_context.shutdown_signal - def add_log(self, entry: mitmproxy.log.LogEntry): - if entry.level == "debug": - logging.debug(entry.msg) - elif entry.level in ("alert", "info"): - # TODO: All mitmproxy infos are basically debugs, should - # probably give these dedicated loggers - logging.debug(entry.msg) - elif entry.level == "warn": - logging.warning(entry.msg) - elif entry.level == "error": - logging.error(entry.msg) - def running(self): # register to pump the events or something here create_logged_task(self._pump_callbacks(), "Pump HTTP proxy callbacks") diff --git a/setup.py b/setup.py index c758dbd..0294ffa 100644 --- a/setup.py +++ b/setup.py @@ -100,9 +100,9 @@ setup( # Proxy-specific stuff 'outleap<1.0', 'arpeggio', - # 11.x will be a major change. - 'mitmproxy>=10.0.0,<11', - 'Werkzeug<3.0', + # 12.x will be a major change. + 'mitmproxy>=11.0.0,<12', + 'Werkzeug<4.0', # For REPLs 'ptpython<4.0', # These could be in extras_require if you don't want a GUI.