From b733049a0c721be97dfd18d95a5e023e7b154a5d Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 3 May 2018 13:27:48 -0400 Subject: [PATCH] Add self to collective database Database would omit initial leader otherwise. --- confluent_server/confluent/collective/manager.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/confluent_server/confluent/collective/manager.py b/confluent_server/confluent/collective/manager.py index 884abd1e..09b54a0f 100644 --- a/confluent_server/confluent/collective/manager.py +++ b/confluent_server/confluent/collective/manager.py @@ -116,6 +116,9 @@ def handle_connection(connection, cert, request, local=False): return myrsp = base64.b64encode(myrsp) fprint = util.get_fingerprint(cert) + myfprint = util.get_fingerprint(mycert) + cfm.add_collective_member(socket.gethostname(), + connection.getsockname()[0], myfprint) cfm.add_collective_member(request['name'], connection.getpeername()[0], fprint) tlvdata.send(connection,