From 0fcfca7201b03c3a494df53baee718ebbe3776dd Mon Sep 17 00:00:00 2001 From: Marco Cirillo Date: Thu, 10 May 2012 12:54:37 +0000 Subject: mod_auth_anonymous: add disallow_s2s to the host object if s2s communication is disallowed. --- plugins/mod_auth_anonymous.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins') diff --git a/plugins/mod_auth_anonymous.lua b/plugins/mod_auth_anonymous.lua index 55398d8a..5df81f24 100644 --- a/plugins/mod_auth_anonymous.lua +++ b/plugins/mod_auth_anonymous.lua @@ -52,6 +52,7 @@ local function dm_callback(username, host, datastore, data) end if module:get_option_boolean("disallow_s2s", true) then + hosts[module.host].disallow_s2s = true; module:hook("route/remote", function (event) return false; -- Block outgoing s2s from anonymous users end, 300); -- cgit v1.2.3