mod_s2s, mod_auth_anonymous, hostmanager: Remove disallow_s2s flag, deprecate the...
[prosody.git] / plugins / mod_auth_anonymous.lua
index 55398d8a2b64ac0646694b051837ed876f58fd82..c080177d5fb4ebfeac62044224de0133bb6338f5 100644 (file)
@@ -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);