Diff

plugins/mod_auth_anonymous.lua @ 4834:878f75ccc4fb

mod_s2s, mod_auth_anonymous, hostmanager: Remove disallow_s2s flag, deprecate the config option of the same name (disable mod_s2s instead), and add 'allow_anonymous_s2s' to separately control s2s for anonymous users
author Matthew Wild <mwild1@gmail.com>
date Fri, 11 May 2012 00:56:18 +0100
parent 4821:deec69fc33e5
child 4846:3bc3498df0a0
line wrap: on
line diff
--- a/plugins/mod_auth_anonymous.lua	Thu May 10 23:10:56 2012 +0100
+++ b/plugins/mod_auth_anonymous.lua	Fri May 11 00:56:18 2012 +0100
@@ -51,7 +51,7 @@
 	return username, host, datastore, data;
 end
 
-if module:get_option_boolean("disallow_s2s", true) then
+if not module:get_option_boolean("allow_anonymous_s2s", false) then
 	module:hook("route/remote", function (event)
 		return false; -- Block outgoing s2s from anonymous users
 	end, 300);