diff options
author | Marco Cirillo <maranda@lightwitch.org> | 2012-05-10 12:54:37 +0000 |
---|---|---|
committer | Marco Cirillo <maranda@lightwitch.org> | 2012-05-10 12:54:37 +0000 |
commit | 0fcfca7201b03c3a494df53baee718ebbe3776dd (patch) | |
tree | df6d54dc6e27a1ceaf0b7dcf4003fb79a3dcbb50 /plugins | |
parent | a773a23715f2c60b566ddf290f123fcd9c3d1bae (diff) | |
download | prosody-0fcfca7201b03c3a494df53baee718ebbe3776dd.tar.gz prosody-0fcfca7201b03c3a494df53baee718ebbe3776dd.zip |
mod_auth_anonymous: add disallow_s2s to the host object if s2s communication is disallowed.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_auth_anonymous.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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); |