Commit fded1df1 authored by anonym's avatar anonym
Browse files

tor-controlport-filter: correctly name all filters.

... and not just the first one listed in a filter file.
parent 84af516a
......@@ -191,7 +191,8 @@ class FilteredControlPortProxyHandler(socketserver.StreamRequestHandler):
with open(filter_file, "rb") as fh:
filters = yaml.load(
name = re.sub(r'\.yml$', '', os.path.basename(filter_file))
filters[0]['name'] = name
for filter_ in filters:
filter_['name'] = name
self.filters += filters
def connect_to_real_control_port(self):
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