2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-26 03:19:48 +00:00

Fix logout

The logout was broken by the forwarder security hardening
This commit is contained in:
Jarrod Johnson 2017-11-28 15:48:35 -05:00
parent 8897eb5dcf
commit 60e8338b47

View File

@ -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()