Diff

plugins/mod_auth_anonymous.lua @ 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
parent 4821:deec69fc33e5
child 4844:3d1ca811eee3
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);