Commit d18027fa authored by anonym's avatar anonym
Browse files

tor-controlport-filter: also log the client port for local connections.

It's useful when debugging clients that use several concurrent
connections, like tor-launcher. Then the client port can be used to
distinguish them (otherwise they look identical).
parent bd25bc6a
......@@ -385,8 +385,8 @@ class FilteredControlPortProxyHandler(socketserver.StreamRequestHandler):
if not client_pid: return
client_exe_path = exe_path_of_pid(client_pid)
client_user = psutil.Process(client_pid).username()
client_desc = '{} (pid: {}, user: {})'.format(
client_exe_path, client_pid, client_user
client_desc = '{} (pid: {}, user: {}, port: {})'.format(
client_exe_path, client_pid, client_user, self.client_address[1]
client_pid = None
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