Merge pull request #906 from anantk17/master

Added feature to intercept flows from within inline scripts
This commit is contained in:
Maximilian Hils 2016-02-01 20:24:06 +01:00
commit 417384d6f2
1 changed files with 5 additions and 1 deletions

View File

@ -703,7 +703,11 @@ class ConsoleMaster(flow.FlowMaster):
self.state.intercept) and not f.request.is_replay: self.state.intercept) and not f.request.is_replay:
f.intercept(self) f.intercept(self)
else: else:
f.reply() #check if flow was intercepted within an inline script by flow.intercept()
if f.intercepted:
f.intercept(self)
else:
f.reply()
signals.flowlist_change.send(self) signals.flowlist_change.send(self)
signals.flow_change.send(self, flow = f) signals.flow_change.send(self, flow = f)