aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/addonmanager.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2017-05-01 16:28:00 +1200
committerAldo Cortesi <aldo@nullcube.com>2017-05-01 16:52:58 +1200
commit1ea4a5a48ef096f314ac81af8426a8e911336729 (patch)
treeafda2e5ccefbcda0164827d4cebbf1cff1482292 /mitmproxy/addonmanager.py
parent670d1e408b565f673ebb2c5d498ad5ddf4558d8b (diff)
downloadmitmproxy-1ea4a5a48ef096f314ac81af8426a8e911336729.tar.gz
mitmproxy-1ea4a5a48ef096f314ac81af8426a8e911336729.tar.bz2
mitmproxy-1ea4a5a48ef096f314ac81af8426a8e911336729.zip
keymap: keys can now bind to multiple contexts
Use this to map the majority of the keys in flowview.
Diffstat (limited to 'mitmproxy/addonmanager.py')
-rw-r--r--mitmproxy/addonmanager.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mitmproxy/addonmanager.py b/mitmproxy/addonmanager.py
index 5d63b1b3..0bbe6287 100644
--- a/mitmproxy/addonmanager.py
+++ b/mitmproxy/addonmanager.py
@@ -6,6 +6,7 @@ import sys
from mitmproxy import exceptions
from mitmproxy import eventsequence
from mitmproxy import controller
+from mitmproxy import flow
from . import ctx
import pprint
@@ -215,6 +216,9 @@ class AddonManager:
if isinstance(message.reply, controller.DummyReply):
message.reply.mark_reset()
+ if isinstance(message, flow.Flow):
+ self.trigger("update", [message])
+
def invoke_addon(self, addon, name, *args, **kwargs):
"""
Invoke an event on an addon and all its children. This method must