Comparison

mod_s2soutinjection/mod_s2soutinjection.lua @ 5101:801ca82b6538

mod_s2soutinjection: Remove undefined global (thanks Damian) Probably leftover from mod_onions. I don't think this had any effect other than Prosody warning about touching the global scope
author Kim Alvefur <zash@zash.se>
date Fri, 02 Dec 2022 22:03:29 +0100
parent 5100:e55d1f7a570a
child 5102:9eed88ac8ee8
comparison
equal deleted inserted replaced
5100:e55d1f7a570a 5101:801ca82b6538
13 13
14 local injected = module:get_option("s2s_connect_overrides"); 14 local injected = module:get_option("s2s_connect_overrides");
15 15
16 -- The proxy_listener handles connection while still connecting to the proxy, 16 -- The proxy_listener handles connection while still connecting to the proxy,
17 -- then it hands them over to the normal listener (in mod_s2s) 17 -- then it hands them over to the normal listener (in mod_s2s)
18 local proxy_listener = { default_port = port, default_mode = "*a", default_interface = "*" }; 18 local proxy_listener = { default_port = nil, default_mode = "*a", default_interface = "*" };
19 19
20 function proxy_listener.onconnect(conn) 20 function proxy_listener.onconnect(conn)
21 local session = sessions[conn]; 21 local session = sessions[conn];
22 22
23 -- Now the real s2s listener can take over the connection. 23 -- Now the real s2s listener can take over the connection.