Changeset

9934:69982753fe4b

core.s2smanager: Rename variable to be same in two functions
author Kim Alvefur <zash@zash.se>
date Fri, 29 Mar 2019 22:45:54 +0100
parents 9933:aac4c55721f9
children 9935:3dfd5f22e3c6
files core/s2smanager.lua
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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)