mod_auth_anonymous: add disallow_s2s to the host object if s2s communication is disallowed.
authorMarco Cirillo <maranda@lightwitch.org>
Thu, 10 May 2012 12:54:37 +0000
changeset 4838 661752889535
parent 4837 9f1fb34cd7f8
child 4839 4905aed00382
child 4844 3d1ca811eee3
mod_auth_anonymous: add disallow_s2s to the host object if s2s communication is disallowed.
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);