Software /
code /
prosody
Changeset
4838:661752889535
mod_auth_anonymous: add disallow_s2s to the host object if s2s communication is disallowed.
author | Marco Cirillo <maranda@lightwitch.org> |
---|---|
date | Thu, 10 May 2012 12:54:37 +0000 |
parents | 4837:9f1fb34cd7f8 |
children | 4839:4905aed00382 4844:3d1ca811eee3 |
files | plugins/mod_auth_anonymous.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_auth_anonymous.lua Wed May 09 23:09:06 2012 +0000 +++ b/plugins/mod_auth_anonymous.lua Thu May 10 12:54:37 2012 +0000 @@ -52,6 +52,7 @@ 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);