From 91e9016ce5af67c4f9f48ee28a9fb14736003f53 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sat, 16 Jul 2016 10:21:00 +1200 Subject: [PATCH] Trigger "start" when scripts are reloaded. --- mitmproxy/builtins/script.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mitmproxy/builtins/script.py b/mitmproxy/builtins/script.py index 14f7dd5f2..ab068e47f 100644 --- a/mitmproxy/builtins/script.py +++ b/mitmproxy/builtins/script.py @@ -131,6 +131,7 @@ class Script: self.should_reload.clear() ctx.log.info("Reloading script: %s" % self.name) self.ns = load_script(self.path, self.args) + self.start() self.configure(self.last_options) else: self.run("tick")