Software /
code /
prosody-modules
Comparison
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 |
comparison
equal
deleted
inserted
replaced
5099:f03f4ec859a3 | 5100:e55d1f7a570a |
---|---|
1 local st = require"util.stanza"; | 1 local st = require"util.stanza"; |
2 local new_ip = require"util.ip".new_ip; | |
3 local new_outgoing = require"core.s2smanager".new_outgoing; | 2 local new_outgoing = require"core.s2smanager".new_outgoing; |
4 local bounce_sendq = module:depends"s2s".route_to_new_session.bounce_sendq; | 3 local bounce_sendq = module:depends"s2s".route_to_new_session.bounce_sendq; |
5 local initialize_filters = require "util.filters".initialize; | 4 local initialize_filters = require "util.filters".initialize; |
6 local st = require "util.stanza"; | |
7 | 5 |
8 local portmanager = require "core.portmanager"; | 6 local portmanager = require "core.portmanager"; |
9 | 7 |
10 local addclient = require "net.server".addclient; | 8 local addclient = require "net.server".addclient; |
11 | 9 |
23 local session = sessions[conn]; | 21 local session = sessions[conn]; |
24 | 22 |
25 -- Now the real s2s listener can take over the connection. | 23 -- Now the real s2s listener can take over the connection. |
26 local listener = portmanager.get_service("s2s").listener; | 24 local listener = portmanager.get_service("s2s").listener; |
27 | 25 |
28 local w, log = conn.send, session.log; | 26 local log = session.log; |
29 | 27 |
30 local filter = initialize_filters(session); | 28 local filter = initialize_filters(session); |
31 | 29 |
32 session.version = 1; | 30 session.version = 1; |
33 | 31 |