Diff

mod_s2soutinjection/mod_s2soutinjection.lua @ 5100:e55d1f7a570a

mod_s2soutinjection: Remove unused variables [luacheck]
author Kim Alvefur <zash@zash.se>
date Fri, 02 Dec 2022 22:02:55 +0100
parent 4931:f4a9e804c457
child 5101:801ca82b6538
line wrap: on
line diff
--- a/mod_s2soutinjection/mod_s2soutinjection.lua	Tue Nov 29 11:43:59 2022 +0000
+++ b/mod_s2soutinjection/mod_s2soutinjection.lua	Fri Dec 02 22:02:55 2022 +0100
@@ -1,9 +1,7 @@
 local st = require"util.stanza";
-local new_ip = require"util.ip".new_ip;
 local new_outgoing = require"core.s2smanager".new_outgoing;
 local bounce_sendq = module:depends"s2s".route_to_new_session.bounce_sendq;
 local initialize_filters = require "util.filters".initialize;
-local st = require "util.stanza";
 
 local portmanager = require "core.portmanager";
 
@@ -25,7 +23,7 @@
 	-- Now the real s2s listener can take over the connection.
 	local listener = portmanager.get_service("s2s").listener;
 
-	local w, log = conn.send, session.log;
+	local log = session.log;
 
 	local filter = initialize_filters(session);