You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently wanted to update the version of the mitmproxy library in my project. The previous version I was using was 5.0.0, but it seems that in the version newer than v7.0 , mitmproxy no longer supports actively creating mitmdump instances in Python. I'm unsure of how to implement some of my project's functionalities in the new version.
In my project, I need to control the reading and writing of interface files through an instance m. However, in the new version, I don't know how to trigger the commands in the addons from Python. I've browsed the documentation, but couldn't find any similar operations.
Additionally, I've noticed that the logging mechanism has also changed. If I use mitmdump -s xxx.py, my own logging seems to be overridden by mitmdump in the new version. Is there any workaround for this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I recently wanted to update the version of the mitmproxy library in my project. The previous version I was using was 5.0.0, but it seems that in the version newer than v7.0 , mitmproxy no longer supports actively creating mitmdump instances in Python. I'm unsure of how to implement some of my project's functionalities in the new version.
In my project, I need to control the reading and writing of interface files through an instance m. However, in the new version, I don't know how to trigger the commands in the addons from Python. I've browsed the documentation, but couldn't find any similar operations.
Additionally, I've noticed that the logging mechanism has also changed. If I use mitmdump -s xxx.py, my own logging seems to be overridden by mitmdump in the new version. Is there any workaround for this?
Here's an example of my code:
I would greatly appreciate any help or guidance on how to address these issues in the newer mitmproxy version.
Beta Was this translation helpful? Give feedback.
All reactions