Diff

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
line wrap: on
line diff
--- a/mod_s2soutinjection/mod_s2soutinjection.lua	Fri Dec 02 22:02:55 2022 +0100
+++ b/mod_s2soutinjection/mod_s2soutinjection.lua	Fri Dec 02 22:03:29 2022 +0100
@@ -15,7 +15,7 @@
 
 -- The proxy_listener handles connection while still connecting to the proxy,
 -- then it hands them over to the normal listener (in mod_s2s)
-local proxy_listener = { default_port = port, default_mode = "*a", default_interface = "*" };
+local proxy_listener = { default_port = nil, default_mode = "*a", default_interface = "*" };
 
 function proxy_listener.onconnect(conn)
 	local session = sessions[conn];