From 60e8338b47f6d128b8af6cd0a6ec441e88431e58 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 28 Nov 2017 15:48:35 -0500 Subject: [PATCH] Fix logout The logout was broken by the forwarder security hardening --- confluent_server/confluent/forwarder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/confluent_server/confluent/forwarder.py b/confluent_server/confluent/forwarder.py index 38153cdd..676c2e57 100644 --- a/confluent_server/confluent/forwarder.py +++ b/confluent_server/confluent/forwarder.py @@ -82,11 +82,11 @@ def close_session(sessionid): killsock.close() if sessionid in forwardersbyclient: del forwardersbyclient[sessionid] - for clip in ipsbysession[sessionid]: + for clip in ipsbysession.get(sessionid, ()): sessionsbyip[clip].discard(sessionid) if sessionid in ipsbysession: del ipsbysession[sessionid] - for relay in list(relaysbysession[sessionid]): + for relay in list(relaysbysession.get(sessionid, ())): conn = relaysbysession[sessionid][relay] relay.kill() conn.close()