Upgrade mitmproxy

This commit is contained in:
Salad Dais
2025-04-18 01:44:23 +00:00
parent 8cf500ce44
commit ad2aca1803
2 changed files with 3 additions and 15 deletions

View File

@@ -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")

View File

@@ -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.