# HG changeset patch # User Marco Cirillo # Date 1336654477 0 # Node ID 661752889535a45f814ba24152314c80571781fd # Parent 9f1fb34cd7f8cf601c8c71fae8bb0bed853fa9ea mod_auth_anonymous: add disallow_s2s to the host object if s2s communication is disallowed. diff -r 9f1fb34cd7f8 -r 661752889535 plugins/mod_auth_anonymous.lua --- 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);