mod_http: Fix traceback when no HTTP services succeed in binding
[prosody.git] / plugins / mod_auth_anonymous.lua
index 5df81f2435133d6e79ffe5acbb73d3e2d1f30b72..c080177d5fb4ebfeac62044224de0133bb6338f5 100644 (file)
@@ -51,8 +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
-       hosts[module.host].disallow_s2s = true;
+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);