X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=plugins%2Fmod_auth_anonymous.lua;h=c080177d5fb4ebfeac62044224de0133bb6338f5;hb=9e8959bbc7565d47a9e1314bc572f6adef3b8ecb;hp=5df81f2435133d6e79ffe5acbb73d3e2d1f30b72;hpb=b57bc7e759d3383783e809cfa0e0fad9706ab003;p=prosody.git diff --git a/plugins/mod_auth_anonymous.lua b/plugins/mod_auth_anonymous.lua index 5df81f24..c080177d 100644 --- a/plugins/mod_auth_anonymous.lua +++ b/plugins/mod_auth_anonymous.lua @@ -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);