aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_auth_anonymous.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-05-11 00:56:18 +0100
committerMatthew Wild <mwild1@gmail.com>2012-05-11 00:56:18 +0100
commitf73fb5fdd4a9f66a5539c33be875d4d9fe63b5d1 (patch)
treefc2779e5341c572deba0f875a624f5057c09d82e /plugins/mod_auth_anonymous.lua
parent765f6f8a4c7cc0e9c11a25d4b023567abd3a14b0 (diff)
downloadprosody-f73fb5fdd4a9f66a5539c33be875d4d9fe63b5d1.tar.gz
prosody-f73fb5fdd4a9f66a5539c33be875d4d9fe63b5d1.zip
mod_s2s, mod_auth_anonymous, hostmanager: Remove disallow_s2s flag, deprecate the config option of the same name (disable mod_s2s instead), and add 'allow_anonymous_s2s' to separately control s2s for anonymous users
Diffstat (limited to 'plugins/mod_auth_anonymous.lua')
-rw-r--r--plugins/mod_auth_anonymous.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_auth_anonymous.lua b/plugins/mod_auth_anonymous.lua
index 55398d8a..c080177d 100644
--- a/plugins/mod_auth_anonymous.lua
+++ b/plugins/mod_auth_anonymous.lua
@@ -51,7 +51,7 @@ local function dm_callback(username, host, datastore, data)
return username, host, datastore, data;
end
-if module:get_option_boolean("disallow_s2s", true) then
+if not module:get_option_boolean("allow_anonymous_s2s", false) then
module:hook("route/remote", function (event)
return false; -- Block outgoing s2s from anonymous users
end, 300);