Commit 5d813373 authored by anonym's avatar anonym
Browse files

Log whether tor-controlport-filter's connections find a matching filter.

parent 5c4bbce8
......@@ -156,8 +156,13 @@ class FilteredControlPortProxyHandler(socketserver.StreamRequestHandler):
client_exe_path = exe_path_of_pid(
client_filter = next(filter for filter in self.filters if any(exe_path for exe_path in filter['match-exe-paths'] if client_exe_path == exe_path))
client_status = 'loaded matching filter'
except StopIteration:
client_filter = {}
client_status = 'no matching filter found, using an empty one'
print('{} (PID {}) connected: {}'.format(client_exe_path,,
allowed_commands = client_filter.get('commands', {})
allowed_events = client_filter.get('events', [])
controller = self.connect_to_real_control_port()
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