Commit 1fbe83da authored by anonym's avatar anonym
Browse files

tor-controlport-filter: deal with scoping.

parent 4cad9d5c
......@@ -379,8 +379,9 @@ def handle_controlport_session(controller, readh, writeh, client_desc, client_pi
event_rewriter = None
if 'response' in rule:
replacers = rule['response']
def _event_rewriter(line):
return rewrite_matched_line(rule['response'], line)
return rewrite_matched_line(replacers, line)
event_rewriter = _event_rewriter
def _event_cb(event):
event_cb(event, event_rewriter=event_rewriter)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment