diff options
-rw-r--r-- | core/s2smanager.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua index c4a94682..c6e6df8e 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -490,9 +490,11 @@ function make_authenticated(session, host) elseif session.type == "s2sin_unauthed" then session.type = "s2sin"; if host then + if not session.hosts[host] then session.hosts[host] = {}; end session.hosts[host].authed = true; end elseif session.type == "s2sin" and host then + if not session.hosts[host] then session.hosts[host] = {}; end session.hosts[host].authed = true; else return false; |