# HG changeset patch # User Kim Alvefur # Date 1553895954 -3600 # Node ID 69982753fe4bf296a52f10def5db7588be083ba9 # Parent aac4c55721f913387b9046c2381fc4c526d68dae core.s2smanager: Rename variable to be same in two functions diff -r aac4c55721f9 -r 69982753fe4b core/s2smanager.lua --- a/core/s2smanager.lua Thu Mar 28 17:28:20 2019 +0100 +++ b/core/s2smanager.lua Fri Mar 29 22:45:54 2019 +0100 @@ -26,10 +26,10 @@ -- luacheck: std none local function new_incoming(conn) - local session = { conn = conn, type = "s2sin_unauthed", direction = "incoming", hosts = {} }; - session.log = logger_init("s2sin"..tostring(session):match("[a-f0-9]+$")); - incoming_s2s[session] = true; - return session; + local host_session = { conn = conn, type = "s2sin_unauthed", direction = "incoming", hosts = {} }; + host_session.log = logger_init("s2sin"..tostring(host_session):match("[a-f0-9]+$")); + incoming_s2s[host_session] = true; + return host_session; end local function new_outgoing(from_host, to_host)