fix: Fixes using s2s for visitors.

This commit is contained in:
damencho 2023-01-06 12:21:12 +02:00 committed by Дамян Минков
parent e8e05c21ab
commit 265d8c4b29
1 changed files with 3 additions and 0 deletions

View File

@ -21,6 +21,9 @@ local proxy_listener = { default_port = nil, default_mode = "*a", default_interf
function proxy_listener.onconnect(conn) function proxy_listener.onconnect(conn)
local session = sessions[conn]; local session = sessions[conn];
-- needed in mod_rate_limit
session.ip = conn:ip();
-- Now the real s2s listener can take over the connection. -- Now the real s2s listener can take over the connection.
local listener = portmanager.get_service("s2s").listener; local listener = portmanager.get_service("s2s").listener;