# HG changeset patch # User Kim Alvefur # Date 1564270990 -7200 # Node ID a3c66d0294e1816e723c926ce759c55ce496c493 # Parent 6b1e89868328ada451b9f5e45f84d4a0c13873ff mod_admin_telnet: Use already generated session id Don't need to construct it from components again diff -r 6b1e89868328 -r a3c66d0294e1 plugins/mod_admin_telnet.lua --- a/plugins/mod_admin_telnet.lua Sun Jul 28 01:39:47 2019 +0200 +++ b/plugins/mod_admin_telnet.lua Sun Jul 28 01:43:10 2019 +0200 @@ -910,7 +910,7 @@ end for _, session in pairs(s2s_sessions) do - local id = session.type..tostring(session):match("[a-f0-9]+$"); + local id = session.id or (session.type..tostring(session):match("[a-f0-9]+$")); if (match_id and match_id == id) or (session.from_host == from and session.to_host == to) then print(("Closing connection from %s to %s [%s]"):format(session.from_host, session.to_host, id));